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

DLookup 1

Status
Not open for further replies.

primerov

Technical User
Aug 16, 2002
160
0
0
BG
I need a help with the DLookup function. The control in my form has a DLook function
to look up the value from the table TblOrderDate, the field OrderDate, where ID = 1
ID is the autonumber in the table.

The control source has the following line
DLookUp("OrderDate", "tblOrderDate", "ID=1")
However, i receive the question Name ?
What is wrong with my code ?


 
Dear Primerov,

I believe you need to insert your field name in brackets with double quotes around it.

Try: DLookup("[orderdate]","tblOrderDate", "ID=1")

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top