I'd like to change a control from a text box to a combo box when certain criteria are met. Is there a way to do this in vba?
Code:
If chkPref = True then
ctlWrecker.ControlType = acComboBox
ctlWrecker.RowSourceType = "Table/Query"
ctlWrecker.RowSource = "blah blah blah"
ElseIf chkPref = False then
ctlWrecker.ControlType = acTextBox
ctlWrecker = strsql
End If
[code]
Bob