Little_Anj
Registered User.
- Local time
- Tomorrow, 01:04
- Joined
- Dec 14, 2012
- Messages
- 25
I have a button on my form, that runs a series of queries then closes the form.
It works great!!
How can I get the MsgBox feature to continue with all commands or cancel and close the form?
Here is my code without message box action
All of these actions work great, and do not need to be modified. it is just a msg box button to continue or cancel and close the form.
It works great!!
How can I get the MsgBox feature to continue with all commands or cancel and close the form?
Here is my code without message box action
Code:
Private Sub AcceptChanges_Click()
DoCmd.SetWarnings False
Forms!SelectCustomerNewCustomerF!MergedRecordsF!CustomerID = Me.SecondID
Forms!SelectCustomerNewCustomerF!MergedRecordsF!MergedTo = Me.IDprimary
Forms!SelectPrimaryNewCustomerF!MergedRecordsF!UserID = Me.UserIdChange
DoEvents
DoCmd.OpenQuery "qryCloseMergedRecordUPDATE"
DoEvents
DoCmd.OpenQuery "qryPrimaryMergeAccountNoAPPEND"
DoEvents
DoCmd.OpenQuery "qryPrimaryMergeAccountNoUPDATE"
DoEvents
DoCmd.Close acForm, "SelectCustomerNewCustomerF"
DoCmd.SetWarnings True
End Sub
All of these actions work great, and do not need to be modified. it is just a msg box button to continue or cancel and close the form.
Last edited: