Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
What this does in Access (which I usually trigger via a button or an event when the form loads) is make visible all the controls in the form that have "start" as part of the name of the control. Any control in the form that doesn't have "start" in the name will go invisible.
Dim this1 as control For each this1 in me.form If Instr(1,this1.name,"start")>0 then this1.visible=True else this1.visible=False End If Next
And I know I could nest some divs inside others to some of what I'm trying to do, but unfortunately I'm using the divs in a lot of different areas in the document's body. I am self-taught on Access quite well, but VB Script is still something I'm learning more of as I go along. Hopefully there's a similarity between the two when it comes to mass updating controls/elements because it would save me a lot of time writing out lines.
dim this1 For each this1 in document.body If instr(1,this1.id,"start")>0 then this1.style.visibility="visible" this1.style.display="block" else this1.style.visibility="hidden" this1.style.display="none" end if next