BCullenward
Registered User.
- Local time
- Today, 16:11
- Joined
- Jul 6, 2005
- Messages
- 28
I have a checkbox that's bound to a recordset and am trying to find a way to disable a button if all records are checked. However, it appears that the sub must end before I can execute the code to get the correct results of what has been checked.
For example:
I have 4 records that have been checked and one that has not yet been checked. My button is enabled. I check the fifth record's checkbox. The button should now be disabled.
The Way It Currently Works:
I have 4 records that have been checked. I check the fifth one. The button is still enabled. I uncheck a box. The button disables. I uncheck another box. The button is enabled.
What is happening:
Since the events for the checkbox run in no logical order
(something like Mouse Up, Before Update, After Update, Click) in that order, I can not run my query to check if all checkboxes are checked then disable the button until after the click event.
Has anyone else experienced anything like this or know how to fix it?
For example:
I have 4 records that have been checked and one that has not yet been checked. My button is enabled. I check the fifth record's checkbox. The button should now be disabled.
The Way It Currently Works:
I have 4 records that have been checked. I check the fifth one. The button is still enabled. I uncheck a box. The button disables. I uncheck another box. The button is enabled.
What is happening:
Since the events for the checkbox run in no logical order
(something like Mouse Up, Before Update, After Update, Click) in that order, I can not run my query to check if all checkboxes are checked then disable the button until after the click event.
Has anyone else experienced anything like this or know how to fix it?