theDBGuy gave you an example that showed embedded SQL. The execute method can execute a querydef if you prefer.
BUT, think very hard about actually implementing this. If you are flagging the actual records, what happens if two people are flagging a different set of records? Their data will get mixed and when one person runs the update query to reset the select fields, he will also be resetting the select marks for the other person. And even using UserID rather than a Y/N field doesn't solve the problem because it won't allow two people to select the same record.
There are two better ways to do this and it depends on how long you need the marks to persist. If this is a short process, you can use a multi-select listbox. The user can select some number of records and do somethin with the selected set. The set does not persist. It is gone when the form is closed.
If you want the selection to persist for even a short time, you need to do it in a temp table. The temp table should probably be in a temp database on each user's PC so there are no conflicts. The selection can persist as long as the user wants it to. When the task is complete, he can delete the rows from the temp table.
Tell us which of the two options will work for you and we can go into details of how to implement it.