CheckBox question

G

Guest

Dear All,

If I have a subform on a form which contains a CheckBox, how can I loop
through all the records in the subform to change all the records' CheckBox to
True?

where the main form is Form1, The subform subForm1 and the CheckBox chk1 and
the recordsource for the Form is Query1.

Do I loop through the recordsource of the subForm1, or do I run an update
Query and change the values and then requery the sub form?

Thanks again.

Alastair MacFarlane
 
G

Guest

Hi,
yes either run an update query or and update sql statement to do whatever
you want to.
Then requery the subform to reflect the results.
HTH
Good luck
 
D

Douglas J Steele

It's almost always faster to use SQL than VBA. Run an Update query, then
requery the subform.
 

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