Hi,
I have a basic form (Access 2000). If a user does not fill in certain fields and attempts to save and go to a new record, I want a message to appear and give the user the option to either return and complete or cancel what has been entered and go to a blank form.
I have tried putting code in Before Update (form) and code in On Click (button). The following is some of the code I have been using:
If IsNull(fiels1) or IsNull(field2) Then
MsgBox "Message"
DoCmd.GoToRecord , "Form Name", acNewRec
Any assistance will be greatly appreciated.
Thanks,
Maurie
I have a basic form (Access 2000). If a user does not fill in certain fields and attempts to save and go to a new record, I want a message to appear and give the user the option to either return and complete or cancel what has been entered and go to a blank form.
I have tried putting code in Before Update (form) and code in On Click (button). The following is some of the code I have been using:
If IsNull(fiels1) or IsNull(field2) Then
MsgBox "Message"
DoCmd.GoToRecord , "Form Name", acNewRec
Any assistance will be greatly appreciated.
Thanks,
Maurie