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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referring to a embedded control on a form

Status
Not open for further replies.

cochise

Technical User
Mar 27, 2001
171
US
I have the following path:

Form [frmMain]
Tab [tabMain]
Page [pag1]
SubForm [sfrmA]
Control [txtAccelID]

I'm trying to reference the txtAccelID in my code, however, can't seem to make it work.

This is where I am now:

[Forms]![frmMain]![tabMain]![pag1]![sfrmA].[txtAccelID]

Any suggestions or could someone point me in the right direction.
 
Are you doing this within the same form or from another location? Within the same form you should be able to refer to the field as Me.txtAccelID. Please let me know if this does not work.

Jim
 
Referring from code in a different module, not the same form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top