Hi, I need help with running an Access 2010 mdb report to multiple PDF files, my report is grouped by Surveyor with a page break at each change in Surveyor and I need a separate PDF for each Surveyor. My report is based upon the following query (SQL code). Query name is q_Survey_MS and the report name is r-Uninspected_Survey_Report
SELECT [t_surveyor]![first_name] & ” ” & [t_surveyor]![surname] AS Surveyor, t_survey.survey_id AS [Survey ID], t_survey.insured, t_survey.policy_number, t_survey.date_required AS [Date required], t_survey.survey_date AS Inspected, t_survey.report_completed_date AS Reported, t_survey.date_requested AS [Date requested], [t_user]![user_name] AS [Responsible Underwriter], t_post_code.suburb, t_survey.policy_due_date, t_cob.cob_code, t_surveyor.zone
FROM (((((t_survey LEFT JOIN t_post_code ON t_survey.suburb = t_post_code.post_code_id) LEFT JOIN t_state ON t_survey.state_id = t_state.state_id) LEFT JOIN t_surveyor ON t_survey.surveyor_id = t_surveyor.surveyor_id) LEFT JOIN t_requested_by ON t_survey.requested_by_id = t_requested_by.requested_by_id) LEFT JOIN t_cob ON t_survey.cob_id = t_cob.cob_id) INNER JOIN t_user ON t_survey.responsible_uw_id = t_user.user_id
WHERE (((t_survey.survey_date) Is Null) AND ((t_survey.report_completed_date) Is Null))
ORDER BY t_survey.date_required;
I have a vague idea of the code needed, but need more help to implement it. I know that I will need a record set and some sort of looping through the Surveyors, I will also need to save the PDFs to a sub directory of the location of the database. Any help would be appreciated.