B
Bassel
Hello
I have a form with a bound combo box to a field called code.
I try to use an if statment in the after update event of another control to
select only a part of the code field.
If Me.CodeType = 2 Then
Me.Code.RowSourceType = "Table/Query"
Me.Code.RowSource = "SELECT OrderedItems.PCode FROM OrderedItems WHERE
(((OrderedItems.CodeType)=2)); "
End If
However the combo box is blank.
Is there is a way to choose the Rowsource of a combobox depending on the
update of another control.
Best regards
I have a form with a bound combo box to a field called code.
I try to use an if statment in the after update event of another control to
select only a part of the code field.
If Me.CodeType = 2 Then
Me.Code.RowSourceType = "Table/Query"
Me.Code.RowSource = "SELECT OrderedItems.PCode FROM OrderedItems WHERE
(((OrderedItems.CodeType)=2)); "
End If
However the combo box is blank.
Is there is a way to choose the Rowsource of a combobox depending on the
update of another control.
Best regards