Hello all
I wonder if you can help with the following,I have tried the FAQs but cannot make this work completely.
Private Sub Details_Exit(Cancel As Integer)
If IsNull(Me![details]) Then
MsgBox "Would you like to Add some Details?", vbYesNo + vbDefaultButton2, "mine"
If vbYes Then
Cancel = True
Else
If vbNo Then
DoCmd.Go to Next Record or cancel event or something ?
End If
End If
End If
End Sub
My question firstly is can I put this in the "on exit"
and lastly I can only make it work on the first Argument.
Please tell me where I am going wrong here
I wonder if you can help with the following,I have tried the FAQs but cannot make this work completely.
Private Sub Details_Exit(Cancel As Integer)
If IsNull(Me![details]) Then
MsgBox "Would you like to Add some Details?", vbYesNo + vbDefaultButton2, "mine"
If vbYes Then
Cancel = True
Else
If vbNo Then
DoCmd.Go to Next Record or cancel event or something ?
End If
End If
End If
End Sub
My question firstly is can I put this in the "on exit"
and lastly I can only make it work on the first Argument.
Please tell me where I am going wrong here