F
Frank The Novice
Hi Everyone,
I have a report that generates a calendar month's data. I would like to add
left and right arrows to the footer in order to easily go back one month or
forward one month, but can't seem to get the code to work.
The SQL used to open the report is:
SELECT *
FROM [Daily Record Query]
WHERE (((Month([Daily Record Query]![DoF]) & "/" & Year([Daily Record
Query]![DoF]))=IIf(IsNull([Enter month and year in m/yyyy
format]),Month(Date()) & "/" & Year(Date()),[Enter month and year in m/yyyy
format])))
ORDER BY [Daily Record Query].DoF;
I've tried to write code to add a month or subtract a month, but when I try
to reopen the report, I get an error.
Thanks for your help,
Frank
I have a report that generates a calendar month's data. I would like to add
left and right arrows to the footer in order to easily go back one month or
forward one month, but can't seem to get the code to work.
The SQL used to open the report is:
SELECT *
FROM [Daily Record Query]
WHERE (((Month([Daily Record Query]![DoF]) & "/" & Year([Daily Record
Query]![DoF]))=IIf(IsNull([Enter month and year in m/yyyy
format]),Month(Date()) & "/" & Year(Date()),[Enter month and year in m/yyyy
format])))
ORDER BY [Daily Record Query].DoF;
I've tried to write code to add a month or subtract a month, but when I try
to reopen the report, I get an error.
Thanks for your help,
Frank