J
JB5498
Guest
I am trying to do a simple Dlookup to ease data entry. Here's what I've got...
Tables:
Clients
-Client
-Company
-Address
-Address2
-Phone
-Ext
-Fax
Orders
-OrderID
-ClientID
Clients Query
-Client
-Company
-Address
-Address2
-Phone
-Ext
-Fax
Form
-OrderID
......... and then I want to add a drop-down to select the clients name and have all of their address and phone information populate in separate text boxes automatically. I created a combo box with the Client Query as the record source. Now I am trying to add a text box for the clients company using =DLookUp("Company","[Client Lookup Query]","Client=" & Company) but instead of returning the company it returns the error #Name?. Can anyone see what the problem is? What am I doing wrong...
BTW,.. this would be my first attempt at Dlookup. Thanks
Tables:
Clients
-Client
-Company
-Address
-Address2
-Phone
-Ext
-Fax
Orders
-OrderID
-ClientID
Clients Query
-Client
-Company
-Address
-Address2
-Phone
-Ext
-Fax
Form
-OrderID
......... and then I want to add a drop-down to select the clients name and have all of their address and phone information populate in separate text boxes automatically. I created a combo box with the Client Query as the record source. Now I am trying to add a text box for the clients company using =DLookUp("Company","[Client Lookup Query]","Client=" & Company) but instead of returning the company it returns the error #Name?. Can anyone see what the problem is? What am I doing wrong...
BTW,.. this would be my first attempt at Dlookup. Thanks