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!

Problem with DLookup on a Form

Status
Not open for further replies.

julesinbath

Programmer
Aug 27, 2003
6
0
0
GB
I have a form that displays all the details of a Job. Most of the text boxes use data from an underlying query that selects all the job details. But I want one of the text boxes to select the "Customer call off number" from the Customers table.

The jobs and customers tables are related by customer_Id. that is, every job has a customer_ID. I have tried selecting the CustomerCallOff via the underlying query, but it results in the form being unable to update the record.

So, I am trying to select the CustomerCallOff from a seperate query using the DLookup function:
DLookUp([CallOff],[queryCallOff])

...but it doesn't work. Instead the textbox displays "#Name?"

Can anyone shed some light on this issue?
Jules
 
Hi, I think your syntax is wrong, try this
=DLookUp("[CallOff]","queryCallOff")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top