FireViking
Programmer
Hi all,
Its been a while since my last visit.
Here goes, I have created a report that uses a query that calls for data between a start and end date. I am trying to create an SQL using the start and end dates to retreive information from 1 month earlier. I thought that I could acheive this by subtracting 1 from the month.
The following code is an example of what I have written.
strStartLastMonth = month(strStartDate)-1 &"/"& day(strStartDate) &"/"& year(strStartDate)
Can someone help out here please.
Its been a while since my last visit.
Here goes, I have created a report that uses a query that calls for data between a start and end date. I am trying to create an SQL using the start and end dates to retreive information from 1 month earlier. I thought that I could acheive this by subtracting 1 from the month.
The following code is an example of what I have written.
strStartLastMonth = month(strStartDate)-1 &"/"& day(strStartDate) &"/"& year(strStartDate)
Can someone help out here please.