With the help of someone I used the following:
=DLookUp("[FirstName]","[tblCustomerList]","[LastName] = '" & [cboCustomerList] & "'")
The above works great except that -
The problem that is happening - I can not have more then one customer with the same last name. When I click on the one that I want the other will appear on the form.
What I am trying to do is:
(1) Use a combo box on a form to autopopulate the customer information into it. The example above of course is for the First Name.
(2) It works fine except for the bug that I can not have more then one customer with the same last name.
(3) I have tryed many differrent combinations of the above with taking out [LastName] and using the RecordID instead which is "ContactID" - it returns an error.
If anyone could help set me straight I would appreciate it.
Thanks
Gary
=DLookUp("[FirstName]","[tblCustomerList]","[LastName] = '" & [cboCustomerList] & "'")
The above works great except that -
The problem that is happening - I can not have more then one customer with the same last name. When I click on the one that I want the other will appear on the form.
What I am trying to do is:
(1) Use a combo box on a form to autopopulate the customer information into it. The example above of course is for the First Name.
(2) It works fine except for the bug that I can not have more then one customer with the same last name.
(3) I have tryed many differrent combinations of the above with taking out [LastName] and using the RecordID instead which is "ContactID" - it returns an error.
If anyone could help set me straight I would appreciate it.
Thanks
Gary
Comment