User selected records for report

SueBK

Registered User.
Local time
Tomorrow, 01:54
Joined
Apr 2, 2009
Messages
197
I would like to give users the option of selecting any records from a particular table ("I want this one, that one and those two") to print to a report.

I'm thinking that process would be:
* add a "include to print" yes/no field in the table
* create a continous form against the table; allow edits against the checkbox (not edits in my database at present)
* create query that filters against selected checkboxes
* create a report that runs off that query

All this I can do. BUT I want the selected checkboxes to return to unselected once the form is closed. How do I do that?
 
Update the table using VBA when you close the form, or at some point after the report has been generated.

Dim strUpdate As String

strUpdate = "Update YourTable Set PrintRecord = False;"

CurrentDb.Execute strUpdate, dbFailOnError
 

Users who are viewing this thread

Back
Top Bottom