Syntax error on DLookup-function

G

Guest

The following DLookup-function only returns a syntax error message in the
controlsource of a textbox in my report:
=DLookUp("[clientname]","[clientregister]","[clientID]=1")

In the immediate window in VB-code, the function gives the expected result,
but not in the controlsource.

What do I do wrong?
 
G

Guest

I would check the name of the text box to make sure it is not the name of a
field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top