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 ...
Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.