mkelly
Registered User.
- Local time
- Today, 16:22
- Joined
- Apr 10, 2002
- Messages
- 213
I enetered this code so that if you go to close the form and "proofreaders name" is null I want it to not close and set the focus back on the "proofreaders name" however all I get is an error message on the set focus line.. any suggestions?
Private Sub Close_form_LostFocus()
If IsNull(Me.Proofreaders_name) Then
MsgBox "You have not entered your name, cannot procede"
'DoCmd.GoToControl "Proofreaders name"
SetFocus(Me.Proofreaders_name) = True
End If
End Sub
Private Sub Close_form_LostFocus()
If IsNull(Me.Proofreaders_name) Then
MsgBox "You have not entered your name, cannot procede"
'DoCmd.GoToControl "Proofreaders name"
SetFocus(Me.Proofreaders_name) = True
End If
End Sub