O'Reilly logo

F. Scott Barker's Microsoft® Access 2000 Power Programming by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

REUSING FORMS TO PERFORM STANDARD TASKS WITH THE OPENARGS AND TAG PROPERTIES

When creating applications in a language that's pure code (such as C++), you want to design your code so that you can reuse it for a number of reasons, including the following:

  • The main code for the reusable routine must be written only once.
  • After the code is debugged, make sure only that the calling routine passes the correct parameters.

These two points are also true when you create reusable code in Access. In Access, you also can create reusable objects. The following example looks at a reusable form and VBA code. The form allows the user to search for customers or movie titles, depending on where the search form was called.

Note

The database for the rest of this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required