Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I reference "Forms![frmMain]![frmRecID]![frmRecTransEntry]"? 1

Status
Not open for further replies.

JennyPeters

Programmer
Oct 29, 2001
228
0
0
US
Instead of typing "Forms![frmMain]![frmRecID]![frmRecTransEntry]" in reference to a form that I have over again in different procedures, how can I reference this with a variable, so I could then do:

variable.requery

Thanks,

Jenny
 
Jenny,

You can use the form object
Take a look at this example:

Dim test As Form
Set test = Forms!Forms![frmMain]![frmRecID]![frmRecTransEntry]
test.Requery

Hilbert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top