mikewood1980
Registered User.
- Local time
- Today, 11:02
- Joined
- May 14, 2008
- Messages
- 45
Hi
I have a save button on my form which when clicked adds a record to a form, then closes the form.
I thought the following code would work:
Private Sub save_Click()
AddRecord
DoCmd.close
End Sub
However, it adds the record and doesnt close the form... if I comment out the AddRecord function, it closes fine. WHY?!!
Thanks in advance for your help
MikeW
I have a save button on my form which when clicked adds a record to a form, then closes the form.
I thought the following code would work:
Private Sub save_Click()
AddRecord
DoCmd.close
End Sub
However, it adds the record and doesnt close the form... if I comment out the AddRecord function, it closes fine. WHY?!!
Thanks in advance for your help
MikeW