<%dim crumb crumb="OpenArgs Form Parameters" Crumb2="Form OpenArgs Example Download" crumb1="Form OpenArgs Parameter Pass" %> Docmd Openform & Open Arguments Download
Home  Fees/Services  Access 2010 Template  Access Tutorial  Access Download  Articles  Search  Contact  Privacy  Links

<%if len(crumb2)>2 then response.write crumb2 else response.write ">

Open Email Using SendObject Access Download

User Inactivity Logout VBA Code

Disable Shift Key Demo

Send Email Microsoft Access Tutorial Download (Advanced)

Sequential Counter in Query

Multi Select List Box Query Parameters

Row Level Data Security

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

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Access Bar Chart / Bar Graph

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method

<% gnum="7159891804" %>

Openform Example Download

In this 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:

Docmd Openform with Open Argument option

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

Microsoft Office:
MS Access 2003
Access 2007
Access 2010
Access 2013
Access 2016
<% dim rnum Randomize rnum = Int(Rnd * 10) + 1 response.write " Updated On " & now-rnum %>

Contact Information

<% Response.write "Copyright 2000-" & year(now) & " Blue Claw Database Design" %>

MS Access 2013, Access 2010 & Microsoft Office 2007