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

Populate Field on subform with code from mainform 1

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
Below is the code I have to populate an unbound field on my form. It worked great until I put the field into the subform. This code is in an AfterUpdate Event on the main
form and I need it to populate a field on a subform. I do
not know how to add the Subform to the code! I know this
is probably something simple but need help.

The Subform name is:
MainEntryQrySelectSub1

Code:
'Me.Method10 = DLookup("[Method]", "ReplenishMethodTbl", "[PullSeqCode] = '" & DLookup("[Pull_Seque]", "MainEntryQrySelectSub1") & "'")
 
Thanks PHV-that helped a lot and worked great!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top