B
Bunky
I have a Combo Box on a form that, depending on the value selected, populates
other txtboxs. All works great as long as the operator selects a value from
the Combo Box. I have tried to put in VB Code that I found at this site but
I can't seem to get it to fire. Here is my code.
Private Sub User_BeforeUpdate(Cancel As Integer)
If IsNull(User) Then
MsgBox "Please enter data"
User.SetFocus
Cancel = True
End If
End Sub
User is the name of the combo box on the form. Any idea how I can get this
condition to stop and give an error?
Kent
other txtboxs. All works great as long as the operator selects a value from
the Combo Box. I have tried to put in VB Code that I found at this site but
I can't seem to get it to fire. Here is my code.
Private Sub User_BeforeUpdate(Cancel As Integer)
If IsNull(User) Then
MsgBox "Please enter data"
User.SetFocus
Cancel = True
End If
End Sub
User is the name of the combo box on the form. Any idea how I can get this
condition to stop and give an error?
Kent