G
Guest
I have 2 tables set up.
First one is called tblcustomers with primary key field called customer
account code.
Second one is called tbllookup also with primary key called customer account
code but with address, city and other fields.
I created a query called qryquote and added these two tables and the
customer account code field from tblcustomers. What I want to do is be able
to enter a customer code which populates the customer account code field in
the tblcustomers table and it automatically fills in the address, city etc
from the lookup table. I created a calculated field called Address in my
query as follows but it doesn't work:
Address: DLookUp(" [address] ","[tbllookup]","[customer account
code]"="[tblcustomers]"."[customer account code]")
Any help appreciated - PS - I'm useless with code so any help with the above
function gratefully received.
Thanks
Anita
First one is called tblcustomers with primary key field called customer
account code.
Second one is called tbllookup also with primary key called customer account
code but with address, city and other fields.
I created a query called qryquote and added these two tables and the
customer account code field from tblcustomers. What I want to do is be able
to enter a customer code which populates the customer account code field in
the tblcustomers table and it automatically fills in the address, city etc
from the lookup table. I created a calculated field called Address in my
query as follows but it doesn't work:
Address: DLookUp(" [address] ","[tbllookup]","[customer account
code]"="[tblcustomers]"."[customer account code]")
Any help appreciated - PS - I'm useless with code so any help with the above
function gratefully received.
Thanks
Anita