I am trying to open a report with the below where clause to show the records from last 6 months. Doing it in VBA with a docmd, but getting an error. Can't figure out how to do it. Please help. I am kind of new to this.
DoCmd.OpenReport "Master Pre-Op Patient Report", acViewReport, , "[Initial Consult Date] >= DateAdd(" & "m" & ",-6,Date())"
Thanks