I am trying to run the code below in the On Timer Even but I keep getting the Else Without If Error Message. I have 2 If statments and 2 End If statement, I can't figure out what I am doing wrong.. Any help is greatly appreciated.....
Code:
Private Sub Form_Timer()
[FrmDashBoard].Requery
[FrmDashBoard2].Requery
If Time() > #11:30:00 PM# And Time() < #11:36:00 PM# Then DoCmd.Quit
Else
If (Time() > #10:27:00 AM# And Time() < #10:45:00 PM# And Weekday(Date) = 3) Then
DoCmd.RunMacro "DB Backups"
End If
End If
End Sub