Hi All,
Ive been trying to find the records in my form based on the selection in a combo box and I have been using the following code:
Code:
Private Sub cboSupplierName_Change()
tboStreetNo.Value = cboSupplierName.Column(1)
tboAddress1.Value = cboSupplierName.Column(2)
tboAddress2.Value = cboSupplierName.Column(3)
tboCity.Value = cboSupplierName.Column(4)
tboCounty.Value = cboSupplierName.Column(5)
tboCode.Value = cboSupplierName.Column(6)
cboCountry.Value = cboSupplierName.Column(7)
tboName.Value = cboSupplierName.Column(8)
txtNo.Value = cboSupplierName.Column(9)
tboEmail.Value = cboSupplierName.Column(10)
txtDelivery = cboSupplierName.Column(11)
txtQuality.Value = cboSupplierName.Column(12)
txtExp.Value = cboSupplierName.Column(13)
End Sub
I'm not sure why this only shows the street number of the Supplier, so it is only showing the first column, anyone have any ideas as to why this would be happening?. Any help would be greatly appreciated.