kelsita_05
Registered User.
- Local time
- Today, 15:53
- Joined
- Aug 23, 2005
- Messages
- 52
I have after update events on two form controls that check for duplicates and pop up a message to warn the user if a duplicate is found and runs a query to show them the dup. record. This works fine.
I've been asked to add a button to duplicate a record. I used the button wizard since that has worked well for me in the past. Problem is, when it duplicates the record, it throws the duplicate warning message box (twice) because technically those fields are duplicates, but the user will change them shortly.
Is there anyway I can turn off those events when I click the duplicate button? Or is there an alternate point when I can run the events? I tried LostFocus(but that checks ever single time you leave the field whether you've changed anything or not) and on Change (but as soon as you start typing it checks) and I got a VBA error when I tried on Dirty.
Thank you!
I've been asked to add a button to duplicate a record. I used the button wizard since that has worked well for me in the past. Problem is, when it duplicates the record, it throws the duplicate warning message box (twice) because technically those fields are duplicates, but the user will change them shortly.
Is there anyway I can turn off those events when I click the duplicate button? Or is there an alternate point when I can run the events? I tried LostFocus(but that checks ever single time you leave the field whether you've changed anything or not) and on Change (but as soon as you start typing it checks) and I got a VBA error when I tried on Dirty.
Thank you!