6ftAndClean
Programmer
Being only an occasional VBA coder I occasionally struggle to convert my usual programming practices (ArcView Avenue, Perl) into somthing that works in VBA.
I have a form with around 30 checkboxes. The purpose of this form is to act as a 'user preference settings' control panel. The 30 checkboxes relate to the 30 fields in a large listbox in another form. The checkboxes are intended to allow the user to choose which fields are displayed.
Under other programming environments I am used to being able to store data (arrays, numbers, strings, etc.) on controls and forms in such a way that they will persist until programmatically cleared or changed. Importantly, these values presist when the form, and indeed the program, is opened and closed.
I have spent a while fruitlessly playing with the 'tag' object on the form but this seems only to permenantly store the string typed into the properties box, whilst the form is in design mode.
How can I get the form to remember the state of each of the 30 checkboxes? I think I may have to store each checkbox's state as its DefaultValue. Longwinded and boring!
Any better options?
Thanks in advance!
I have a form with around 30 checkboxes. The purpose of this form is to act as a 'user preference settings' control panel. The 30 checkboxes relate to the 30 fields in a large listbox in another form. The checkboxes are intended to allow the user to choose which fields are displayed.
Under other programming environments I am used to being able to store data (arrays, numbers, strings, etc.) on controls and forms in such a way that they will persist until programmatically cleared or changed. Importantly, these values presist when the form, and indeed the program, is opened and closed.
I have spent a while fruitlessly playing with the 'tag' object on the form but this seems only to permenantly store the string typed into the properties box, whilst the form is in design mode.
How can I get the form to remember the state of each of the 30 checkboxes? I think I may have to store each checkbox's state as its DefaultValue. Longwinded and boring!
Any better options?
Thanks in advance!