Rick
Rick

Reputation: 2308

Access: Select multiple records to print report

I am trying to design a form where I can select multiple records and on button click open the report with the selected records IDs.

I am thinking maybe make a continuous form with an added unbound check box control where the user selects the appropriate records they want to display in the report. I am unsure how to later read this into a do.cmd OpenReport criteria property. If there is an easier way to this please let me know.

Upvotes: 1

Views: 7892

Answers (2)

TheOtherTimDuncan
TheOtherTimDuncan

Reputation: 603

Take a look at http://support.microsoft.com/kb/135546 or http://allenbrowne.com/ser-50.html. Another approach you could take is create a temporary table that contains a single field for your record ID. Using the code from the links, fill the temporary table with the record IDs that have been selected. Then all you need to do is change the query that drives your report to do an inner join with the temporary table.

Upvotes: 3

Beth
Beth

Reputation: 9617

Can you add a column to your dataset where they can determine which rows to print? You could add a printMe Y/N column, for example, and then use that field value to limit the rows for the report.

Upvotes: 2

Related Questions