Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox 1

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
I've got a startup form with a main menu displed afterwards. On the main menu there is a checkbox which the user ticks to stop the startup form from showing if prefered. If the user 'ticks' the checkbox when the form is opened again it returns back to 'unticked' so the startup form is displayed. Is there a way of making the value in the checkbox &quot;stay&quot; there.<br>
<br>
Thanks :)
 
What you need to do is to create a new database property, by using the Custom tab of the database properties window, accessible from the File menu. Call it something like &quot;StartupForm&quot;.<br>
<br>
Then you can run some code at startup, which will check the dtaabase property using the new property, whose value you access with:<br>
CurrentDB.Containers!Databases.Documents!UserDefined.Properties!StartupForm<br>
<br>
If this value is true, then display the startup form, otherwise don't. When the user ticks the check box on the form, you can use the Close event of the form to &quot;see&quot; this and set the StartupForm property to False.<br>
<br>
Hope this helps.<br>
<br>
Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top