Hi.
I've created a voting form with (currently) 10 option groups comprising of 5 mutually exclusive radio buttons with the headings; For, Against, Abstain, Spoil and Proxy. So far I'm up to 50 buttons but their could be more option groups and I fear the coding will get messy.
Here are my initial problems / queries.
Is it possible (and pointers would be welcome) to store the individual values of each button (currently 1-5) in a database table and use a query to feed 'default selections, ie if the voter is following the 'Chair Vote', currently the code reads as follows, where values 1 & 2 are either For or Against.
GrpChair is the Option Group, a secondary radio button clears the form using a .value of null, but again coding longhand.
Any help will be gratefully accepted.
Cheers,
Jon
I've created a voting form with (currently) 10 option groups comprising of 5 mutually exclusive radio buttons with the headings; For, Against, Abstain, Spoil and Proxy. So far I'm up to 50 buttons but their could be more option groups and I fear the coding will get messy.
Here are my initial problems / queries.
Is it possible (and pointers would be welcome) to store the individual values of each button (currently 1-5) in a database table and use a query to feed 'default selections, ie if the voter is following the 'Chair Vote', currently the code reads as follows, where values 1 & 2 are either For or Against.
Code:
If GrpChair.Value = 1 Then
OptRes1.Value = 1
OptRes2.Value = 2
OptRes3.Value = 1
OptRes4.Value = 2
OptRes5.Value = 1
OptRes6.Value = 2
OptRes7.Value = 1
OptRes8.Value = 2
OptRes9.Value = 1
OptRes10.Value = 2
GrpChair is the Option Group, a secondary radio button clears the form using a .value of null, but again coding longhand.
Any help will be gratefully accepted.
Cheers,
Jon