closing form

W

Will

Hello,

i am trying to uncheck(checkbox) all selected record in a continous form
using the close event of the form. can anyone help with this.....

thanks
 
C

Craig

Try this:Use the recordsource of your continous form and create and update
query.
Example:
dim sSQL as string
sSQL="UPDATE PurchaseOrders SET Ordered = False
WHERE Ordered=True
Docmd.runcommand RunSQL

I you don't want the msgboxes add lines before and after for
Docmd.setwarnings false before and true after the code.
 
W

Will

Sorry, i am very new to this stuff, and i am wondering if that code should go
within the select statement.
my current record source is the table ProdHistory and the item that i want
to diselect is ckselect.

thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top