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

Access Dlookup help 2

Status
Not open for further replies.

johnfra

Programmer
Sep 19, 1999
10
CA
Hi All<br>
I am having a major problem using the DLookup function in a query. I can enter the expr and domain with no problem, but when I enter the criteria, I get an error that Access cant find the criteria.<br>
<br>
Colour: DLookUp(&quot;[color]&quot;,&quot;ColorCodeTable&quot;,&quot;[Colorcodes]=[TestValue]&quot;)<br>
<br>
Using this statement, I get an error that Access can't find &quot;TestValue&quot;. TestValue is a field in the current Query.<br>
<br>
As always any help would be greatly appreciated.<br>
<br>
Best Regards,<br>
John
 
Try:<br>
<br>
DLookUp(&quot;[color]&quot;,&quot;ColorCodeTable&quot;,&quot;[Colorcodes]=&quot; & [TestValue])<br>
<br>
Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top