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

#Error message

Status
Not open for further replies.

atadbitslow

Programmer
Feb 26, 2001
301
0
0
US
I'm baffled....

Why does this expression give me an #error in my query,

Expr2: DLookUp("descrip","cash descriptions","FUNDCODE=" & [cashnycashitemsdetail]![FundCode])

and this expression does not??

Expr1: DLookUp("cashid","cash items","giftid=" & [cashnycashitemsdetail]![giftid])

I basically copied and pasted the expression that works, and just changed the table and fields.....?

Thanks!
 
If the field FUNDCODE has Text data type, you have to change that expression, from:

DLookUp("descrip","cash descriptions","FUNDCODE=" & [cashnycashitemsdetail]![FundCode])

become:

DLookUp("descrip","cash descriptions","FUNDCODE='" & [cashnycashitemsdetail]![FundCode] & "'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top