G
Guest
Hi there,
I'm sorry this is a dumb question but I'm in a bit of a muddle as I don't
really know what I'm doing!!!...
To save constantly writing out the full path to each of a number of controls
on a subform, I thought I'd assign each name to a variable. An example of
the control name is 'Forms!frm_Arrangements!frm_ProgressLogSubform.Form.chk9'.
What I really want to do is make the variable public and declare the values
publicly but instead I have to assign a value to the variable within each
procedure which makes it all rather lumpy. I've tried making each name a
Constant instead but as there are values to be assigned to some of the
controls, there's an error 'cos you can't change a Constant (otherwise it
wouldn't be constant!! - I understand that bit at least).
So, is there a neater way of declaring and specifying the names of these
controls for use throughout the database project? I've been declaring the
type as String and then I tried Control but that seemed to make matters worse!
Sorry for the waffle but any help would be very much appreciated.
Regards,
Lee
I'm sorry this is a dumb question but I'm in a bit of a muddle as I don't
really know what I'm doing!!!...
To save constantly writing out the full path to each of a number of controls
on a subform, I thought I'd assign each name to a variable. An example of
the control name is 'Forms!frm_Arrangements!frm_ProgressLogSubform.Form.chk9'.
What I really want to do is make the variable public and declare the values
publicly but instead I have to assign a value to the variable within each
procedure which makes it all rather lumpy. I've tried making each name a
Constant instead but as there are values to be assigned to some of the
controls, there's an error 'cos you can't change a Constant (otherwise it
wouldn't be constant!! - I understand that bit at least).
So, is there a neater way of declaring and specifying the names of these
controls for use throughout the database project? I've been declaring the
type as String and then I tried Control but that seemed to make matters worse!
Sorry for the waffle but any help would be very much appreciated.
Regards,
Lee