Hi,
I have unbound ComboBox which displays several columns on "frmInvoice" form.
When a user chooses a "Company Name" from combo box, the several text fields display the associated address.
The unbound Combo box AfterUpdate() codes are following.
Private Sub Select_a_Customer_AfterUpdate()
Me![CompanyName] = Me![Select a Customer].Column(0)
Me![Street1] = Me![Select a Customer].Column(1)
Me![Street2] = Me![Select a Customer].Column(2)
Me![City] = Me![Select a Customer].Column(3)
Me![State] = Me![Select a Customer].Column(4)
Me![Zip] = Me![Select a Customer].Column(5)
End Sub
The combo box data come from "tblCustomer".
After display the address with company name, I want to save the "frmInvoice" form to "tblInvoice" table.
How do I save the data to the tblInvoice ?
Any help will be appreciated.
I have unbound ComboBox which displays several columns on "frmInvoice" form.
When a user chooses a "Company Name" from combo box, the several text fields display the associated address.
The unbound Combo box AfterUpdate() codes are following.
Private Sub Select_a_Customer_AfterUpdate()
Me![CompanyName] = Me![Select a Customer].Column(0)
Me![Street1] = Me![Select a Customer].Column(1)
Me![Street2] = Me![Select a Customer].Column(2)
Me![City] = Me![Select a Customer].Column(3)
Me![State] = Me![Select a Customer].Column(4)
Me![Zip] = Me![Select a Customer].Column(5)
End Sub
The combo box data come from "tblCustomer".
After display the address with company name, I want to save the "frmInvoice" form to "tblInvoice" table.
How do I save the data to the tblInvoice ?
Any help will be appreciated.