Question : Access: Gouping Textboxes into frames

I have 100 textboxes on a form. How would I group these textboxes so that I can edit the entire group instead of calling each textbox individually. i.e. I first tried grouping my textboxes into frames, so that I can write vb code to make the frame invisible instead of calling each textbox. BUT... when I make the frame invisible, the textboxes remain.

i.e. below are a list of my textboxes

textbox1
textbox2
textbox2

I would like to insert them into a frame (i.e. called: "Frame1")
then when I go into vb and call them to be invisible I can say:

me.Frame1.visible = False

instead of....

me.text1.visible = false
me.text2.visible = false
me.text3.visible = false

I can not get this to work though... When I say me.frame1.visible = false, the frame disapperas but the textboxes remain. I would like the textboxes to dissappear to.


Answer : Access: Gouping Textboxes into frames

Instead of a Frame ... use a tab control with a single page ...set the border style of the table control to none.  Then put all of your controls on this tab.  You can enable/disable and/or visible/invisible in an instant.  I've been doing this for years.

mx
Random Solutions  
 
programming4us programming4us