I've created a progress meter form. In a Public Sub in the progress meter form I have the following code:
Public Sub Progress(lngCurrent As Long, lngTotal As Long)
'Assumes box is 3.5" or 5040 twips wide
Me.rectProgressBar.Width = 5040 * (lngCurrent / lngTotal)
Me.Repaint
End Sub
Private Sub CmdTestIt_Click()
DoCmd.OpenForm "frmProgressBar", acNormal
Dim lngCurrentProgress As Long
For lngCurrentProgress = 1 To 3000
Call Forms("frmProgressBar".Progress(lngCurrentProgress,3000)
Next lngCurrentProgress
DoCmd.Close acForm, "frmProgressBar"
End Sub
This test works OK, but the solid progress bar flickers quite a bit as it proceeds across the rectangle. Everything stays within the rectangle. It just isn't a nice, smooth solid color sliding across the rectangle.
Does anyone have any suggestions?
Thanks,
dftjsn
Public Sub Progress(lngCurrent As Long, lngTotal As Long)
'Assumes box is 3.5" or 5040 twips wide
Me.rectProgressBar.Width = 5040 * (lngCurrent / lngTotal)
Me.Repaint
End Sub
Private Sub CmdTestIt_Click()
DoCmd.OpenForm "frmProgressBar", acNormal
Dim lngCurrentProgress As Long
For lngCurrentProgress = 1 To 3000
Call Forms("frmProgressBar".Progress(lngCurrentProgress,3000)
Next lngCurrentProgress
DoCmd.Close acForm, "frmProgressBar"
End Sub
This test works OK, but the solid progress bar flickers quite a bit as it proceeds across the rectangle. Everything stays within the rectangle. It just isn't a nice, smooth solid color sliding across the rectangle.
Does anyone have any suggestions?
Thanks,
dftjsn