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

DLookup question 1

Status
Not open for further replies.

Eprice

Technical User
May 6, 2003
209
US
I want to use DLookup for two criteria. First will be AutoNo = AutoNo, a field in a table to match the field on the form and where another field HWType = "Monitor". I tried this but get nothing in return.
DLookup("[SerialNo]", "tblHardware", "[AutoNo] = " & [AutoNo] & [HWType] = "Monitor")

Thanks, Lisa
 
That gives me #Name?. This is on a subform if that helps.
Lisa
 
I forgot the equal sign, yes it does work. Thanks Duane.
Lisa
 
Did you include the "=" since this is probably a control source property?

If this is a text box, what is the Name property of the text box? It can't be the Name of a field in the subform's record source.

What is the actual expression you tried?

Duane
Hook'D on Access
MS Access MVP
 
I did forget the = sign but as soon as I realized that, I responed back and gave you a star. Thanks so much.
Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top