C
cefrancke
I've read up on Access and the limits of creating visible controls at
run-time.
I'm using Access 2003 and assume that it cant be done.
I did find a clever method of having a main form (and in it's code)
open up a subform in design mode (hidden maybe) and then using the
CreateControl method, create controls.
Save the subform and set a subform control on the main form to point to
the subform (really a form) I just edited/designed.
What I would like to know is....
Can I have a control on that subfom, say a rectange (with all its code
I put in for click events), and "clone" it (along with the event code I
created) on the subform, of course multiple times as needed? So, that
the "cloned" rectangles also have the click event code I made for the
original.
This way I can create as many as I like and the functionality of each
rectangle is the same.
Thanks in advance for any advice.
run-time.
I'm using Access 2003 and assume that it cant be done.
I did find a clever method of having a main form (and in it's code)
open up a subform in design mode (hidden maybe) and then using the
CreateControl method, create controls.
Save the subform and set a subform control on the main form to point to
the subform (really a form) I just edited/designed.
What I would like to know is....
Can I have a control on that subfom, say a rectange (with all its code
I put in for click events), and "clone" it (along with the event code I
created) on the subform, of course multiple times as needed? So, that
the "cloned" rectangles also have the click event code I made for the
original.
This way I can create as many as I like and the functionality of each
rectangle is the same.
Thanks in advance for any advice.