P
Paul Ponzelli
I'm using the click event of a label on one form to open another form. It
takes 8 or 10 seconds for that second form to open, because there are
several procedures that run in the Form_Load and Form_Open events.
During that period, I would like the cursor to turn into an hourglass to let
the user know that something is actually going on. In an effort to
accomplish this, I enclosed the code that opens the second form with the
Hourglass method of the DoCmd object. However, when I click on the label,
the hourglass doesn't display for most of the 8 or 10 second wait. Instead,
at the end of the waiting period, the hourglass very briefly flashes (for
less than a second) on the screen right before the second form opens.
Here's the code I'm using.
DoCmd.Hourglass True
stDocName = "frmEmployeeTimeSheet"
stLinkCriteria = "[EmployeeID]=" & "'" & Me![Combo0] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Hourglass False
Can anyone tell me why the Hourglass doesn't display during most of the 8-10
seconds it takes the form to open?
Thanks in advance,
Paul
takes 8 or 10 seconds for that second form to open, because there are
several procedures that run in the Form_Load and Form_Open events.
During that period, I would like the cursor to turn into an hourglass to let
the user know that something is actually going on. In an effort to
accomplish this, I enclosed the code that opens the second form with the
Hourglass method of the DoCmd object. However, when I click on the label,
the hourglass doesn't display for most of the 8 or 10 second wait. Instead,
at the end of the waiting period, the hourglass very briefly flashes (for
less than a second) on the screen right before the second form opens.
Here's the code I'm using.
DoCmd.Hourglass True
stDocName = "frmEmployeeTimeSheet"
stLinkCriteria = "[EmployeeID]=" & "'" & Me![Combo0] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Hourglass False
Can anyone tell me why the Hourglass doesn't display during most of the 8-10
seconds it takes the form to open?
Thanks in advance,
Paul