troubleshooting Question

Update Delay when user clicks Checkbox

Avatar of Milewskp
MilewskpFlag for Canada asked on
Microsoft Access
13 Comments1 Solution459 ViewsLast Modified:
I have a form with two checkbox controls: YN and YN1

The control source for YN is table1.YN (a non-required boolean field), and YN1 is a calculated field: =Nz([YN],False) .

The mousedown event for YN1 is:
   Private Sub YN1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
       Me.YN = Not Me.YN
   End Sub

The result of all of this is that YN and YN1 always have the same value, except that when YN is null, YN1 shows up as False.

Here's the question:
When the user mouses down on YN1,
 - If YN is True, then YN1 goes false immediately when the user releases the mouse.
 - If YN is False, then YN1 goes True about a second after the user releases the mouse. This delay is really irritating because it leaves you wondering if you actually clicked it properly.

Why is there a difference, and how can I make it so that the value of YN1 always changes immediately when the user releases the mouse?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros