R
Richard
Hi
I have a form which on exit (for new records), all the fields will be
populated be the word "error" but it does save the record. Why is it so?
This is the code for the onexit event (different forms may open this form to
add data)
Private Sub exit_Click()
On Error Resume Next
DoCmd.Close
Forms!contacts!companyid.Requery
Forms![Enrolments]![COMPANY].Requery
Forms![Roombooking]![COMPANY].Requery
End Sub
Thanks in advance
Richard
I have a form which on exit (for new records), all the fields will be
populated be the word "error" but it does save the record. Why is it so?
This is the code for the onexit event (different forms may open this form to
add data)
Private Sub exit_Click()
On Error Resume Next
DoCmd.Close
Forms!contacts!companyid.Requery
Forms![Enrolments]![COMPANY].Requery
Forms![Roombooking]![COMPANY].Requery
End Sub
Thanks in advance
Richard