E
Enigo
Hi,
I am trying to automate some of my reports. I have a report which will send
via email to a distribution list on the 1st Day of every month. What I need
to do is tell my query that the report is based on to only take data from the
last full month. Here is the criteria I am trying to manipulate to work.
DatePart("m",Now())=DatePart("m",[Approval Timestamp])
Problem is if I try it like this:
DatePart("m",-1,Now())=DatePart("m",-1,[Approval Timestamp])
I get a data type error.
Can anyone help?
Enigo
I am trying to automate some of my reports. I have a report which will send
via email to a distribution list on the 1st Day of every month. What I need
to do is tell my query that the report is based on to only take data from the
last full month. Here is the criteria I am trying to manipulate to work.
DatePart("m",Now())=DatePart("m",[Approval Timestamp])
Problem is if I try it like this:
DatePart("m",-1,Now())=DatePart("m",-1,[Approval Timestamp])
I get a data type error.
Can anyone help?
Enigo