Check box (1 Viewer)

cruzpatas

Registered User.
Local time
Today, 02:16
Joined
Dec 16, 2005
Messages
41
I want to connect a single check box to a record of check boxes, so that when it is on yes (checked) all the other boxes are yes (checked) automatically. How do I go about doing this? Is there an expression I can build for it?
:confused:
 

ghudson

Registered User.
Local time
Today, 03:16
Joined
Jun 8, 2002
Messages
6,195
You need to use an update query [SQL] to update all of the records [in the record souce]. Use the after udpate event of the 'one' checkbox to kick off your update to all of the other records. A check mark [True/Yes] = -1 in code.
 

cruzpatas

Registered User.
Local time
Today, 02:16
Joined
Dec 16, 2005
Messages
41
Thanks guys

These worked great. I ended up using jrjr's temp and it worked great. Thanks to both of you. :D
This is going to be a great program!
 

selvsagt

Registered User.
Local time
Today, 09:16
Joined
Jun 29, 2006
Messages
99
Hi.

I tried your ExampleDB in the forum thread above.
It only checkes one post in my form.

I have a list that varies in size. Usually its varies between 4 to 30 posts. I would like the check all of them with with one click.

Your exampleDB only checked one of the posts (the first post in the formlist).
I used your code, and called the checkboxes ck2, while the "mother box" had the name ck1. I used the code in the afterupdate section.

Do you know why this happens?
 

Users who are viewing this thread

Top Bottom