Mousepointer problems

J

jdj

Hi,

I have a function that takes a while to run so I would
like to change the mousepointer to the hourglass and then
back again. However with the code I am currently using
the mousepointer does not change. Here is the code.

On Error GoTo ErrorHandler
Screen.MousePointer = 11
DoCmd.OpenForm "frmEmployeePerformance", acNormal
DoEvents
Forms!frmEmployeePerformance.LoadEmployees
(lbxHours.SelectedItem.Text)
Screen.MousePointer = 0
Exit Sub
ErrorHandler:
MsgBox Error$

Thanks for the help.

Jason
 
G

Gary Miller

Jason,

Change your Pointer lines to use the Hourglass method...

DoCmd.Hourglass True 'Hourglass is now on.
DoCmd.Hourglass False 'Off

Make sure and put the Off one in your Error Handler or it
may stay on until you reboot if there is a problem <grin>.

Gary Miller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top