M
Mark CHP IMD
I have a pop up form that I’m trying to use as a progress meter that works
off the forms timer property. The following code works great when there is no
other code working on another form, for example, DoCmd.RunSQL. If I put the
objects on the main form I still find it interrupted by other code.
Does running SQL stop the timer function on a form as apparently it seems to?
If MForm.[MeterBase].Tag = "Forward" Then
MForm.[Meter].Width = MForm.[Meter].Width + 0.01 * 1440
If MForm.[Meter].Width > 1.975 * 1440 Then MForm.[MeterBase].Tag =
"Backward"
Else
MForm.[Meter].Width = MForm.[Meter].Width - 0.01 * 1440
If MForm.[Meter].Width < 0.025 * 1440 Then MForm.[MeterBase].Tag =
"Forward"
End If
If Not MTask Then DoCmd.Close acForm, MForm.Name: SendKeys "{F11}", True
Thanks for your input.
Mark
off the forms timer property. The following code works great when there is no
other code working on another form, for example, DoCmd.RunSQL. If I put the
objects on the main form I still find it interrupted by other code.
Does running SQL stop the timer function on a form as apparently it seems to?
If MForm.[MeterBase].Tag = "Forward" Then
MForm.[Meter].Width = MForm.[Meter].Width + 0.01 * 1440
If MForm.[Meter].Width > 1.975 * 1440 Then MForm.[MeterBase].Tag =
"Backward"
Else
MForm.[Meter].Width = MForm.[Meter].Width - 0.01 * 1440
If MForm.[Meter].Width < 0.025 * 1440 Then MForm.[MeterBase].Tag =
"Forward"
End If
If Not MTask Then DoCmd.Close acForm, MForm.Name: SendKeys "{F11}", True
Thanks for your input.
Mark