View Single Post
Old 03-10-2011, 08:16 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,516
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Easy. Before running your loop set ALL of the records to 0 and then loop through the selected checkboxes and set those to 1.

The only snag is that if you have records you want to keep set as 1 you'll be stuffed unless they were also selected in the form.

Apart from that you can't do it. Checkboxes are for selecting items not for changing their state. Thats what radio buttons are for.
tangoforce is offline   Reply With Quote