When running a long database query, how do you change the mouse pointer to the hourglass, then back to the pointer when the query is over? Any help would be appreciated...VolFans
Printable View
When running a long database query, how do you change the mouse pointer to the hourglass, then back to the pointer when the query is over? Any help would be appreciated...VolFans
Code:Screen.MousePointer = vbHourGlass
'Run query here
Screen.MousePointer = vbDefault
It is always best to use Screen, as Serge showed, because it will have a cursor on every one of your forms. Whereas if you were to just put something like Form1.MousePointer = vbHourGlass, than it would only show the cursor for that form.