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

DLookup help 2

Status
Not open for further replies.

rlmorgan

Technical User
Jun 2, 2006
32
US
Question?
I have a subform that has a input field named “TechName”, and a hidden field labeled “PagerE”. The subform populates the “tblPartsOrdered”. I would like to have the “PagerE” auto update the pager number by what name has been input in the “TechName” field. The data for this is listed in the “tblTechs”. I am trying to use the DLookup function with no success. I have tried variations on the code below.

Any suggestions?

Code in the Control Source of the frmPartsSub.Pager

=DLookUp("[PagerE]","tblTechs","[TechName]")
 
Something like:
=DLookUp("[PagerE]","tblTechs","[TechName]='" & Me.TechName & "'")
 
Thank for the responce. That give an error #Name$ in the Pager field
 
I keep forgetting, no Me on forms:
=DLookUp("[PagerE]","tblTechs","[TechName]='" & [TechName] & "'")
 
Thanks, I've been working on that for over 4 hours.

That solved my problems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top