Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto check boxes 1

Status
Not open for further replies.

p3ngu1n1337

IS-IT--Management
Feb 12, 2004
9
CA
Hi all,

The databaseI created contains one Main table. I have created several queries off of this table. One of these queries is based on one criteria in the main table. That criteria is whether the Yes/No checkbox has been checked or not. All records that have NOT been checked get sent to this Query. I have also created a report to print out based on this query. I would like to be able to auto check all the boxes of the records in the query once they have been printed so they don't appear in the query again. I add data every day and print it out almost right away. I have not been able to figure out if this is possible.
Please help if you can.
Thanx in advance!

Have you hugged your Penguin today???
 
[tt]
Hi:

There may be several ways...

One is:

Either in a macro or in VBA

1) open the query that underlies the report
2) print the report
3) open an update query that updates
the yes/no checkbox to yes in all records

Take care to have an immediately preceding backup in the event the printer jams or,

You could wait until you have the printed document before opening the update query with a command button on a form.

Hope this helps.[/tt]

[glasses][tt]Gus Brunston - Access2000(DAO)
Skill level based on 1-10: 7, on the way to 6, and beyond!
Webmaster: www.rentdex.com[/tt]
 
That's it!

Thanx alot,
That will work perfectly, I will just add a button to the switch board that runs the query to "cleaar the print query" That will ensure it stays until printed.

Thanx again!!!!!!!!!!!!

Have you hugged your Penguin today???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top