BarryMK
4 strings are enough
- Local time
- Today, 18:04
- Joined
- Oct 15, 2002
- Messages
- 1,350
Hi I can't get my head around the logic on a small problem.
I have a form set up where on the onClose event an email is sent using sendObject this works fine. However I want the user to be able to cancel the entire record if they've screwed up the entry so there is a cancel Command Button using DoCmd.RunCommand acCmdDeleteRecord. If this cancel is used I don't want the email to be generated and I can't for the life of me work out the process. Help me I'm having a senior moment!
I have a form set up where on the onClose event an email is sent using sendObject this works fine. However I want the user to be able to cancel the entire record if they've screwed up the entry so there is a cancel Command Button using DoCmd.RunCommand acCmdDeleteRecord. If this cancel is used I don't want the email to be generated and I can't for the life of me work out the process. Help me I'm having a senior moment!