P
paul.schrum
Access 2007
On my navigator form I have the following code:
Private timesThroughTimer as Long
Private Sub Form_Timer()
'Me.RecordSource = "qry_activePersons"
If timesThroughTimer < 1 Then
Me.cmb_identity.RowSource = "SELECT
qry_activePersons.personID, " & _
"qry_activePersons.personName FROM qry_activePersons;"
Me.TimerInterval = 60
timesThroughTimer = 2
Else
If Len(Me.lbl_message_navigator.Caption) > 0 Then
Me.lbl_message_navigator.Caption = ""
Me.Refresh
End If
End If
End Sub
The code Me.cmb_identity.RowSource = "SELECT qry_activePersons
was necessary to work around a previous problem. I don't think I can
eliminate it. In the form properties I have Timer Interval set to 1.
What I mean to be doing is reset the form timer back to 60 seconds
after the first time through. However this does not seem to be
happening. The function gets called very quickly, effectively
blocking any other operations (like selecting a command button).
Is it possible to change the TimerInterval programmatically from
within Timer Function to prevent this behavior?
On my navigator form I have the following code:
Private timesThroughTimer as Long
Private Sub Form_Timer()
'Me.RecordSource = "qry_activePersons"
If timesThroughTimer < 1 Then
Me.cmb_identity.RowSource = "SELECT
qry_activePersons.personID, " & _
"qry_activePersons.personName FROM qry_activePersons;"
Me.TimerInterval = 60
timesThroughTimer = 2
Else
If Len(Me.lbl_message_navigator.Caption) > 0 Then
Me.lbl_message_navigator.Caption = ""
Me.Refresh
End If
End If
End Sub
The code Me.cmb_identity.RowSource = "SELECT qry_activePersons
was necessary to work around a previous problem. I don't think I can
eliminate it. In the form properties I have Timer Interval set to 1.
What I mean to be doing is reset the form timer back to 60 seconds
after the first time through. However this does not seem to be
happening. The function gets called very quickly, effectively
blocking any other operations (like selecting a command button).
Is it possible to change the TimerInterval programmatically from
within Timer Function to prevent this behavior?