Hi, I have a report that prints the last 12 months worth of data. I have options within my forum to select the parameters of this report. The report covers 200 staff. And one of the parameters i have is that you can select a team from these staff. (approx 15 staff per team).
However the problem i'm having is that not every team has data each month.
I have a button on my form to export the report to PDF once the team has been selected. I'm receving Error 3070 when there is no data for a month.
My button is running off code.
DoCmd.OutputTo acOutputReport, "rptFINALCSOOutlierTrendV3", acFormatPDF, , True, , , acExportQualityScreen
The report runs perfectly fine when all staff are selected. The error is only occuring when there is no data for a month within the team selection.
Can anyone offer any solutions on what I can add to either the code or the query that it runs off to fet around this issue?
Your help is much appreciated.