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

Display value from table on form (conditionally)

Status
Not open for further replies.

micruys

Technical User
Feb 19, 2008
3
BE
I want to display the value for VATAmountGBP where the TaxCode is AR from tblSalesSummary on a form. So I gave the following in the Countrol Source of the box in which I would like to display the record:

=DLookUp([VATAmountGBP];[tblSalesSummary];[TaxCode]="AR")

I always get the #Name? error when I display the form...

What am I doing wrong?

Many thanks in advance
 
Code:
 =DLookup("[VATAmountGBP]" , "[tblSalesSummary]" , "[TaxCode]= 'AR'")

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Perhaps this ?
Code:
=DLookUp("VATAmountGBP","tblSalesSummary","TaxCode='AR'")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks for the replies, but so far no luck with the suggested coding...
 
Coding works fine now, I had to replace the , by a ;

Many thanks for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top