wh00t
Registered User.
- Local time
- Today, 06:26
- Joined
- May 18, 2001
- Messages
- 264
I have an annoying oddity with the hourglass and not sure why.
I run the following code and the hourglass does not display, I commented the DoCmd.Hourglass False to see if the hourglass did come on at all and it does but only after frmPrintOptions is open.
There are no hourglass statements on the report or form which are opened.
Any idea why the hourglass only shows after the code is run and is there a way round it?
btw, if your wondering if 'ResetCounter' has something to do with it, here's that code.
I run the following code and the hourglass does not display, I commented the DoCmd.Hourglass False to see if the hourglass did come on at all and it does but only after frmPrintOptions is open.
There are no hourglass statements on the report or form which are opened.
Any idea why the hourglass only shows after the code is run and is there a way round it?
Code:
DoCmd.Hourglass True
ResetCounter
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * FROM tblList"
If DLookup("ReportOption", "tblOptions") Then
DoCmd.OpenQuery "qryAppendTypeA"
Else
DoCmd.OpenQuery "qryAppendTypeB"
End If
DoCmd.SetWarnings True
DoCmd.OpenReport "rptReport", acViewPreview
DoCmd.OpenForm "frmPrintOptions", acNormal
DoCmd.Hourglass False
btw, if your wondering if 'ResetCounter' has something to do with it, here's that code.
Code:
Option Explicit
Dim mlngCounter As Long
Function ResetCounter()
mlngCounter = 0
End Function