Hello all!
I have a fairly easy (as always, so I THINK it's easy anyway) question. I have a form with about 20 checkboxes on the form. There is also a text box at the top of the form which is labeled TOTAL. The table that the form is bound to has a column for each check box response (yes/no type fields), along with an ID number for each record, and a total field to store the total value. What I want on the form is when a user clicks a check box on that form (registering a YES value in the table then), I would like the total value in the Total textbox to update. So, from all 20 checkboxes on the form, if a user clicks YES to 15 of those, it will register a 15 in the total text box at the top (and of course in the table since it's tied to that field). Of course if a user unchecks a box then, it should deduct one from the total.
Seems like this is a simple running count kind of thing, but I'm not sure how to go about doing it. It would probably be best if there were some code on each checkbox that updated the Total value after each click. I'm just in a real brain dead state today, and I can't seem to think of anything.
If anyone out there knows any way to do this, please let me know.
THANKS!
I have a fairly easy (as always, so I THINK it's easy anyway) question. I have a form with about 20 checkboxes on the form. There is also a text box at the top of the form which is labeled TOTAL. The table that the form is bound to has a column for each check box response (yes/no type fields), along with an ID number for each record, and a total field to store the total value. What I want on the form is when a user clicks a check box on that form (registering a YES value in the table then), I would like the total value in the Total textbox to update. So, from all 20 checkboxes on the form, if a user clicks YES to 15 of those, it will register a 15 in the total text box at the top (and of course in the table since it's tied to that field). Of course if a user unchecks a box then, it should deduct one from the total.
Seems like this is a simple running count kind of thing, but I'm not sure how to go about doing it. It would probably be best if there were some code on each checkbox that updated the Total value after each click. I'm just in a real brain dead state today, and I can't seem to think of anything.
If anyone out there knows any way to do this, please let me know.
THANKS!