The following is my code to set up timerinterval property. But Access 97 returned me an error message: "Invalid use of Me keyword."
Private Sub Timer(TimerInt As Integer)
On Error GoTo Timer_Err
Dim db As Database
Set db = CurrentDb
Set TimerInt = Me.TimerInterval
DoCmd.SetWarnings False
DoCmd.OpenForm ("test"
If TimerInt = 3000 Then
DoCmd....
Else
If TimerInt = 4000 Then
docmd....
Else
If TimerInt = 6000 Then
DoCmd....
End If
End If
End If
DoCmd.SetWarnings True
End Sub
What's wrong with my code? Thank you very much
Private Sub Timer(TimerInt As Integer)
On Error GoTo Timer_Err
Dim db As Database
Set db = CurrentDb
Set TimerInt = Me.TimerInterval
DoCmd.SetWarnings False
DoCmd.OpenForm ("test"
If TimerInt = 3000 Then
DoCmd....
Else
If TimerInt = 4000 Then
docmd....
Else
If TimerInt = 6000 Then
DoCmd....
End If
End If
End If
DoCmd.SetWarnings True
End Sub
What's wrong with my code? Thank you very much