R
Rhonda Floyd
I have a unbound control on a form that is required for a make table query to run. What I have is below.
Private Sub txtSource_Exit(Cancel As Integer)
If IsNull(Me.txtSource) Then
MsgBox "Source Code must be entered!"
DoCmd.GoToControl "txtSource"
End If
End Sub
When the control is blank the msgbox pops up, but the cursor goes to the next control. I have to click with the mouse to get back to txtSource control. I also have the InputMask property set to 'AA'.
Any help will be greatly appreciated.
Private Sub txtSource_Exit(Cancel As Integer)
If IsNull(Me.txtSource) Then
MsgBox "Source Code must be entered!"
DoCmd.GoToControl "txtSource"
End If
End Sub
When the control is blank the msgbox pops up, but the cursor goes to the next control. I have to click with the mouse to get back to txtSource control. I also have the InputMask property set to 'AA'.
Any help will be greatly appreciated.