Hi,
I have a combobox with the following - working - VBA code, which restricts the dropbox selection to the items related to combobox cbo_Fld0:
cbo_Lot0.RowSource = "SELECT Distinct LotName from tbl_ProdLot Where [ProdNo] = " & cbo_Fld0.Column(2)
However, if I try to put the code into the property window of the control, the 'cbo_Fld0.Column(2)' expression is not accepted.
What is the correct syntax?
Thanks, georgp
I have a combobox with the following - working - VBA code, which restricts the dropbox selection to the items related to combobox cbo_Fld0:
cbo_Lot0.RowSource = "SELECT Distinct LotName from tbl_ProdLot Where [ProdNo] = " & cbo_Fld0.Column(2)
However, if I try to put the code into the property window of the control, the 'cbo_Fld0.Column(2)' expression is not accepted.
What is the correct syntax?
Thanks, georgp