hi,
I previously created an order form which contained a combo box that when a "customer" was selected their address details would be automatically appear in textboxes on the form, it also cloned the customers address details into a series of Shipping address information textboxes with the following code:
Private Sub ClientID_AfterUpdate()
' Update ShipTo controls based on value selected in CustomerID combo box.
Me!ShipName = Me![ClientID].Column(1)
Me!ShipAddress = Me!Address
Me!ShipCity = Me!City
Me!ShipRegion = Me!Region
Me!ShipPostalCode = Me!PostCode
Me!ShipCountry = Me!Country
End Sub
However Ive now redesigned this system so it only displayed customer address details as the shipping address is rarely the same as the clients address details.
i also i created a new table for Courier details and a new combo box for it that works in the same way as the new version of the customer combo box.
How the problem is that both these combo boxes display a list of the customers however i cant click on any of them and im not sure what the problem is..
now my control source for the customers combo box is my ClientID which is an autonumber.
the row sourceis : SELECT DISTINCT Customers.ClientID, Customers.CompanyName FROM Customers ORDER BY Customers.CompanyName;
the same goes for the courier combo box but replace couriers with customers :>
im not sure why i cant select a customer or courier from the combo boxes.. you guys have any ideas? i c&ped the new one, but ive tried deleting and recreating them no joy.
I previously created an order form which contained a combo box that when a "customer" was selected their address details would be automatically appear in textboxes on the form, it also cloned the customers address details into a series of Shipping address information textboxes with the following code:
Private Sub ClientID_AfterUpdate()
' Update ShipTo controls based on value selected in CustomerID combo box.
Me!ShipName = Me![ClientID].Column(1)
Me!ShipAddress = Me!Address
Me!ShipCity = Me!City
Me!ShipRegion = Me!Region
Me!ShipPostalCode = Me!PostCode
Me!ShipCountry = Me!Country
End Sub
However Ive now redesigned this system so it only displayed customer address details as the shipping address is rarely the same as the clients address details.
i also i created a new table for Courier details and a new combo box for it that works in the same way as the new version of the customer combo box.
How the problem is that both these combo boxes display a list of the customers however i cant click on any of them and im not sure what the problem is..
now my control source for the customers combo box is my ClientID which is an autonumber.
the row sourceis : SELECT DISTINCT Customers.ClientID, Customers.CompanyName FROM Customers ORDER BY Customers.CompanyName;
the same goes for the courier combo box but replace couriers with customers :>
im not sure why i cant select a customer or courier from the combo boxes.. you guys have any ideas? i c&ped the new one, but ive tried deleting and recreating them no joy.