Header to affect every detail item

C

Cathy

I have a checkbox in the form header, that when checked I
would like it to check the checkbox on every line of
detail in the detail area.

I have been able to get it to check the first line of
detail by using a setvalue command in a macro... but not
every one. How do I go about affecting all of them?

Thank you,
Cathy
 
P

PC Datasheet

Cathy,

Use an Update query to check the checkbox on every line of detail in the detail
area. Your code would look like:
DoCmd.SetWarnings False
DoCmd.OpenQuery "NameOfUpdateQuery"
DoCmd.SetWarnings True
Me.Requery

You would run this code in the AfterUpdate event of the checkbox in the header.
 
C

Cathy

THANK YOU!

It worked perfectly!

Cathy

-----Original Message-----
Cathy,

Use an Update query to check the checkbox on every line of detail in the detail
area. Your code would look like:
DoCmd.SetWarnings False
DoCmd.OpenQuery "NameOfUpdateQuery"
DoCmd.SetWarnings True
Me.Requery

You would run this code in the AfterUpdate event of the checkbox in the header.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com





.
 

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