Heatshiver
Registered User.
- Local time
- Today, 10:20
- Joined
- Dec 23, 2011
- Messages
- 263
I have some code that checks the date AND user ID to ensure that there has not been a record for that date and user ID on Form B. This works without issue. On the same form I have a text box to input a new date with a command button that then copies over all the records information and then creates a new record with that new date. This works if I comment out the code that checks out the date and user ID.
When the user first gets into the database they input the user ID on Form A, and then Form B pops up. On the load event of Form B, it takes the user ID from Form A and places it in the user ID of Form B, which is locked.
My problem is that if I enable the code for the data and user ID check, it causes the database to hang when the user tries to have the record copied over to a new one.
My question is how can I tell the button that when clicked ignore, skip, or temporarily disable the code that checks the date and user ID?
When the user first gets into the database they input the user ID on Form A, and then Form B pops up. On the load event of Form B, it takes the user ID from Form A and places it in the user ID of Form B, which is locked.
My problem is that if I enable the code for the data and user ID check, it causes the database to hang when the user tries to have the record copied over to a new one.
My question is how can I tell the button that when clicked ignore, skip, or temporarily disable the code that checks the date and user ID?