Hello all,
I have create a code for form field IME, for validation data if field is empty. So, my wish is, if field is empty > then message box turn on > press ok > and go to control field IME.
Please help!
thanks in advance to helpers...
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Nz(Me.ime, "") = "" Then
MsgBox "Field IME must not be empty", vbCritical + vbOKOnly, "Empty Field!"
Cancel = True
DoCmd.GoToControl ime
End If
End Sub
I have create a code for form field IME, for validation data if field is empty. So, my wish is, if field is empty > then message box turn on > press ok > and go to control field IME.
Please help!
thanks in advance to helpers...
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Nz(Me.ime, "") = "" Then
MsgBox "Field IME must not be empty", vbCritical + vbOKOnly, "Empty Field!"
Cancel = True
DoCmd.GoToControl ime
End If
End Sub