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
|Excel Vlookup to move data back to source.||4||83|
|Access VBA script to unzip a SQL Server backup file to a selected folder||12||45|
|Have the left number set as a countdown on days that are passing by.||19||47|
|Sending Attachment via CDO||3||58|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!