Hello,
This worked fine until today and I can seems to find the problem :banghead:
I have a button with the following code:
Private Sub Cmd_OpenRptPEByName_Click()
DoCmd.OpenReport "Rpt_CARenew", acViewPreview
End Sub
when I click the button I get
Error code 3085
Undefined function 'Date' in expression
The report I am trying to open has the following in the filter (data proterty)section:
[Forms]![Frm_CARenewByName]![cboFName] = Qry_CARenew.[EmpID] And (Year(Qry_CARenew.[Expires]) = Year(Date())) AND (Month(Qry_CARenew.[Expires]) = Month(Date()) OR Month(Qry_CARenew.[Expires]) = (Month(Date()) + 1) OR Month(Qry_CARenew.[Expires]) = (Month(Date()) - 1))
Can you please help me?
Thank you,
This worked fine until today and I can seems to find the problem :banghead:
I have a button with the following code:
Private Sub Cmd_OpenRptPEByName_Click()
DoCmd.OpenReport "Rpt_CARenew", acViewPreview
End Sub
when I click the button I get
Error code 3085
Undefined function 'Date' in expression
The report I am trying to open has the following in the filter (data proterty)section:
[Forms]![Frm_CARenewByName]![cboFName] = Qry_CARenew.[EmpID] And (Year(Qry_CARenew.[Expires]) = Year(Date())) AND (Month(Qry_CARenew.[Expires]) = Month(Date()) OR Month(Qry_CARenew.[Expires]) = (Month(Date()) + 1) OR Month(Qry_CARenew.[Expires]) = (Month(Date()) - 1))
Can you please help me?
Thank you,