This is what I'm trying to do:
I have a table(customers)with the following fields:
CustID,CustomerName,Address,City,State,Zip.
Currently, I have a form with a combobox(Customer)which is tied to the table CustomerName field, selecting a customer from the combobox dropdown list fills in 4 textboxes; Address,City,State,Zip positioned below the combobox on the form.
I need to add "Company" to the form.
I've add a "CompanyName" field to the customer table and I've added another combobox(Company)on the form.
All records will have a "CustomerName" BUT some records will have customers with no company name and I want the user the option of picking either a customer or a company from the 2 comboboxs and either one will cause the SAME 4 textboxes(Address, ect)will be filled.
I can't seem to be able to do this in an SQL query so I turning to vb.
Thanks
Vince
I have a table(customers)with the following fields:
CustID,CustomerName,Address,City,State,Zip.
Currently, I have a form with a combobox(Customer)which is tied to the table CustomerName field, selecting a customer from the combobox dropdown list fills in 4 textboxes; Address,City,State,Zip positioned below the combobox on the form.
I need to add "Company" to the form.
I've add a "CompanyName" field to the customer table and I've added another combobox(Company)on the form.
All records will have a "CustomerName" BUT some records will have customers with no company name and I want the user the option of picking either a customer or a company from the 2 comboboxs and either one will cause the SAME 4 textboxes(Address, ect)will be filled.
I can't seem to be able to do this in an SQL query so I turning to vb.
Thanks
Vince