DJ_DEF_CON_1
Registered User.
- Local time
- Today, 00:49
- Joined
- Jan 1, 2003
- Messages
- 40
I have some code that is getting stuck. Could someone please look at the following and see if they can figure out what is wrong.
The form "KYLE" just displays when the user has to exit the form.
Any help would be greatly appreciated.
Private Sub Form_Timer()
Dim ETIME
ETIME = DateDiff("n", [TIME_OPEN], Now())
If ETIME > 15 And ETIME < 30 Then
DoCmd.OpenForm "KYLE"
Else
If ETIME > 29 Then
DoCmd.Close
DoCmd.Close "KYLE" IT IS GETTING STUCK HERE!
DoCmd.OpenQuery "qryDeleteInfo"
End If
End If
End Sub
The form "KYLE" just displays when the user has to exit the form.
Any help would be greatly appreciated.
Private Sub Form_Timer()
Dim ETIME
ETIME = DateDiff("n", [TIME_OPEN], Now())
If ETIME > 15 And ETIME < 30 Then
DoCmd.OpenForm "KYLE"
Else
If ETIME > 29 Then
DoCmd.Close
DoCmd.Close "KYLE" IT IS GETTING STUCK HERE!
DoCmd.OpenQuery "qryDeleteInfo"
End If
End If
End Sub