initialize a form

T

thread

Hi
i'm trying to build a code that will intialize of the form to the
original status it was when we just open the form,
for example all visible control will return to be unvisible like the
form status is in the start
some listboxs will return to be empty like in the start when we just
access the form
any data that was in the variable will be initialize and etc
any idea?
 
T

Tom Wickerath

Take a look at this sample database:

http://www.accessmvp.com/TWickerath/downloads/Chap08QBF.zip

It includes a command button with caption "Clear" that clears items selected
in a list box, clears check boxes, and two text boxes for dates. It does not
reset the .visible property for any of these controls, but that would be a
trivial change to add, if you want that type of functionality.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
 
Top