D
DJJ
Is there anyway to prevent this code from firing when the form is closed and
this text box has focus?
Private Sub txtBegHour_Exit(Cancel As Integer)
If CInt(Nz(Me.txtBegHour.Text, 0)) = 0 Then
MsgBox "Please enter a number between 0 - 12 ", vbOKOnly, "Attention!"
Cancel = True
End If
End Sub
Thanks in advance...
DJ
this text box has focus?
Private Sub txtBegHour_Exit(Cancel As Integer)
If CInt(Nz(Me.txtBegHour.Text, 0)) = 0 Then
MsgBox "Please enter a number between 0 - 12 ", vbOKOnly, "Attention!"
Cancel = True
End If
End Sub
Thanks in advance...
DJ