MkIIISupra
Programmer
But the samples I found are for looping through record sets. I have a timer event set for 5 minutes. Every 5 minutes the form is closed then re-opened. Right now it seems to be the only method I have to refresh the data within it. And it works for now, I will make it right in later versions. Anyhow I am in a quandry in that I have the progress bar on the form but I can figure out how to get it to show progress during the 5 minutes period. I was even considering a counter on the form, sort of a count down clock but I haven't been able to figure that out either.
Either method would be nice! Here is the code that I have so far:
Private Sub Form_Load()
Me.TimerInterval = 60000 ' 5 Minute Iteration
myBool = True
DoCmd.GoToRecord, , acFirst
Do
stDistNum = Me.distNum
stDistName = Me.distName
stIssueTime = Me.issueTime
stIssueDate = Me.issueDate
stStatus = Me.ProcessStatus
stHoldReas = Me.holdReason
stSoNum = Me.soNum
stTmpLst = stDistNum & ";" & stDistName & ";" & stIssueTime & ";" & stIssueDate & ";" _
& stStatus & ";" & stHoldReas & ";" & stSoNum & ";" & stTmpLst
If (Me.processStatus) = "On Hold" Then
intHold = intHold + 1
ElseIf (Me.processStatus+ = "Released" Then
intRelease = intRelease + 1
End If
DoCmd.GoToRecord, , AcNext
intRecCnt = intRecCnt + 1
If IsNull(Me.distNum) Then
myBool = False
End If
Loop Until myBool = False
'Other code here
End Sub
------------------------------------------------------------
Private Sub Form_Timer
DoCmd.Close acForm Me.NAME
DoCmd.OpenForm "frmWKCE_LoginErrorsActive"
End Sub
I want either the progress bar to work during the 5 minute period or a counter to display on the form showing time till next refresh. Thanks!!!
One by one the penguins steal my sanity!
Either method would be nice! Here is the code that I have so far:
Private Sub Form_Load()
Me.TimerInterval = 60000 ' 5 Minute Iteration
myBool = True
DoCmd.GoToRecord, , acFirst
Do
stDistNum = Me.distNum
stDistName = Me.distName
stIssueTime = Me.issueTime
stIssueDate = Me.issueDate
stStatus = Me.ProcessStatus
stHoldReas = Me.holdReason
stSoNum = Me.soNum
stTmpLst = stDistNum & ";" & stDistName & ";" & stIssueTime & ";" & stIssueDate & ";" _
& stStatus & ";" & stHoldReas & ";" & stSoNum & ";" & stTmpLst
If (Me.processStatus) = "On Hold" Then
intHold = intHold + 1
ElseIf (Me.processStatus+ = "Released" Then
intRelease = intRelease + 1
End If
DoCmd.GoToRecord, , AcNext
intRecCnt = intRecCnt + 1
If IsNull(Me.distNum) Then
myBool = False
End If
Loop Until myBool = False
'Other code here
End Sub
------------------------------------------------------------
Private Sub Form_Timer
DoCmd.Close acForm Me.NAME
DoCmd.OpenForm "frmWKCE_LoginErrorsActive"
End Sub
I want either the progress bar to work during the 5 minute period or a counter to display on the form showing time till next refresh. Thanks!!!
One by one the penguins steal my sanity!