Good day,
I am tring to validate a combo box then a textbox but I get the error "You can't reference a property unless it has focus...". The code I use is
Me.cbowaiting.Setfocus
If Me.cbowaiting.Text = "OTHER" And Me.waitingothercomments.Text = "" Then
'MsgBox "You must enter other comments, when 'Other" is selected above....", vbCritical
'Exit Sub
'End If
But I can't give focus to too controls @ once.
Any thoughts?
durdle
________
toyota innova history
I am tring to validate a combo box then a textbox but I get the error "You can't reference a property unless it has focus...". The code I use is
Me.cbowaiting.Setfocus
If Me.cbowaiting.Text = "OTHER" And Me.waitingothercomments.Text = "" Then
'MsgBox "You must enter other comments, when 'Other" is selected above....", vbCritical
'Exit Sub
'End If
But I can't give focus to too controls @ once.
Any thoughts?
durdle
________
toyota innova history
Last edited: