Hi Experts
I really need some help please i am still pretty new to Access VBA.
I am trying to create a pop up reminder in my form called "FrmCustomerInfo" that has a Subform called "FrmCalloutDetailsSubform"
I am using the On Timer event with VBA and a Timer Interval of 5000
But i keep getting a "Syntax error in date in query expression"
Any assistance here will be much appreciated.
Please also let me know if any other info is required.
I really need some help please i am still pretty new to Access VBA.
I am trying to create a pop up reminder in my form called "FrmCustomerInfo" that has a Subform called "FrmCalloutDetailsSubform"
I am using the On Timer event with VBA and a Timer Interval of 5000
But i keep getting a "Syntax error in date in query expression"
Any assistance here will be much appreciated.
Please also let me know if any other info is required.
This is my code:
Private Sub Form_Timer()
Dim ID As Long
ID = Nz(DLookup("CustomerID", "TblCalloutDetails", "MajorServiceDate=" & Date & "#"), 0)
If ID <> 0 Then
DoCmd.OpenForm "FrmNotice"
End If
End Sub