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

Compiler error - expected: expression 1

Status
Not open for further replies.

Russ1005

Programmer
Dec 13, 2004
96
US
I get a compiler error expected: expression when executing this dlookup statement.

Any idea why?

Thanks for your help,
-Russ

? = DLookup("[avgprice]", "LOWESAVERAGECOSTWITHLABORVIEW", "[edge_model_no] = '" & [Forms]![customer_claims_detail subfrom]![model] & "'")
 
You wanted this ?
Debug.Print DLookup("[avgprice]", "LOWESAVERAGECOSTWITHLABORVIEW", "[edge_model_no] = '" & [Forms]![customer_claims_detail subfrom]![model] & "'")


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top