Private Sub btnCertsExp_Click()
DoCmd.OpenReport "rptCerts", acViewPreview, , "[CertDateExp] < " & DateAdd("m", 2, Date)
End Sub
so this opens my report but with no results - because I dont know how to get the Format right
in the reports Filter Property I have [CertDateExp] < 21/04/2013 and of course if I change it to
[CertDateExp] < #21/04/2013# all works well. I just need to know how to do this in the procedure
Thanks everyone