Dlookup...

doran_doran

Registered User.
Local time
Today, 08:18
Joined
Aug 15, 2002
Messages
349
tables "tbl_groups" and "tblBasicCase" has ga_number and PlanNum common.

=DLookUp("[BillingStructure]","tblBasicCase","[GA_Number] = '" & [ga_number] & "'" And "[plannum]='" & [plannum] & "'")

Tell me why is not working.

what i am saying is lookup billingstucture in tblbasiccase where ga_number = same as tbl_groups ga number and planNum is same as tbl_groups plannum.

Thanks
 
Jamils_gateway said:
=DLookUp("[BillingStructure]","tblBasicCase","[GA_Number] = '" & [ga_number] & "'" And "[plannum]='" & [plannum] & "'")

Tell me why is not working.

Because you haven't written the criteria properly - you've broken the string as the AND has to be included within the string and not left outside.
 
hmm, can't seem to get it work....

will you be kind enough to modify my dlookup.
 
=DLookUp("[BillingStructure]","tblBasicCase","[GA_Number] = '" & [ga_number] & "' And [plannum]='" & [plannum] & "'")
 

Users who are viewing this thread

Back
Top Bottom