Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Hourglass not working when used in Image Onclick event in Access 2007

Avatar of BradleyCleveland
BradleyCleveland asked on
Microsoft Access
7 Comments1 Solution559 ViewsLast Modified:
I'm using Access 2007. I don't know if the problem exists in other versions or not.  When initiating the Hourglass command on a command button, the cursor changes to an hourglass like it is supposed to. When initiating the same code on the OnClick event of an image, the cursor does not change to an hourglass.  As an example, paste the following lines of code behind the Onclick command of a command button, and paste the code behind the onclick event of the image and then compare the results.  Anybody have a solution to this?

Dim dt As Date
DoCmd.Hourglass True
dt = DateAdd("s", 6, Now())
Do Until dt < Now
DoCmd.Hourglass False
MsgBox "Finished"
Avatar of harfang
harfangFlag of Switzerland image

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

This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers