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

reference the subform in VBA code

Status
Not open for further replies.

hengsin

Technical User
Mar 26, 2003
128
0
0
MY
Anyone here know what is the syntax in VBA code to refer to the subform. For example:

MainForm: frmMeeting
Subform: subfrmAction
field which to refer: Action ID in subFormAction

If is in mainform, i know it's Me!ActionID. But how about the subform?

 
I believe what is below will work

Me!SubForm!ActionID

Dave
ToeShot@Hotmail.com
Today Is Tomorrows Yesterday. So Why Wait
 
thanks but your method was not working
 
Hi hengsin,

Try Me!subfrmAction!ActionID

but make the sure the name in red is the name of your subform control if it is different from the name of the subform.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top