Open Email Using SendObject Access Download
Send Email Microsoft Access Tutorial Download (Advanced)
Programming MS Access Security Alternative
Single User Inventory Calculations Download
How To Perform Multi-User Inventory Calculations
Make Dependent Combo Box Code MS Access Tutorial Download
Union Query (Advanced) Access Tutorial Download
How To Fill Fields From Combo Box
Openform Example Download
downloadable Access database example we show you how to setup the docmd.openform method in Access Visual Basic. Additionally we demonstrate
how to set and read the open arguments option of the docmd.openform method.
The example involves a simple Access inventory database. The form contains a field for the General Contractor (GC). We have added a Double click event to the GC combo box field. If the user double clicks on the GC field then a new form opens displaying the detailed information for the selected general contractor. The VB code also demonstrates how to filter records with the openargs command line options.
Here is a snapshot of the database with the GC details screen opened after double clicking:
Use this link to download the docmd.openform with openargs Access database example.
While the openargs method is obviously useful and simple we prefer to use the global variable method to pass parameters to open forms since we use this method to pass parameters to other database objects such as queries. One nice feature of using global variables is that they always work the same way and therefore makes coding consistent and simple once the techniques are memorized. Check out our Access global variables as query parameters example. Note that we have tested our examples in Access 2007 and Access 2010
Copyright 2000-2013 Blue Claw Database Design, LLC