In my form there are 3 fields that are required to be filled out.
In the form Before Update I have the following code:
If IsNull([FirstName]) Or IsNull([LastName]) Or IsNull([P_Address]) Then
MsgBox "Required field left empty", vbOKOnly
Cancel = True
End If
Now when I click on the Ok Button in the MsgBox, the form closes.
I want to have it stay open and move the focus to the first required field,
so I can enter the info.
I played with setFocus too, but the form closes no matter what.
What am I doing wrong here? Any help is appreciated.
Checked the forum on this subject, found no solution
Trucktime
Access 2003
In the form Before Update I have the following code:
If IsNull([FirstName]) Or IsNull([LastName]) Or IsNull([P_Address]) Then
MsgBox "Required field left empty", vbOKOnly
Cancel = True
End If
Now when I click on the Ok Button in the MsgBox, the form closes.
I want to have it stay open and move the focus to the first required field,
so I can enter the info.
I played with setFocus too, but the form closes no matter what.
What am I doing wrong here? Any help is appreciated.
Checked the forum on this subject, found no solution
Trucktime
Access 2003