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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Code "Options"?

Status
Not open for further replies.

tomco22

Technical User
Sep 16, 2000
74
US
How would I change startup options via code. I don’t want to go to every computer to navigate through “TOOLS > OPTIONS… > Edit/Find to uncheck the three boxes in Confirm:

Record changes;
Document deletions;
Action queries.

I would also like to change the “Default database folder:” to C:\ via code.


Tom
MCSD
I Nab Terrorists
 
Using DoCmd.SetWarnings False in the code of the app itself should remove most of the headache.

Hope this helps.
 
Hi there--Look up the SetOption method of the Application object in HELP. It tells you every option from the TOOLS+OPTIONS tabs and how to set them in VBA. Put the code into a module that gets lauched when the db opens.

Hope this helps--g



Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
cghoga & GingerR

Thanks for the help. One or both of your solutions will quickly solve my problem when I sit down to compute tomorrow morning. Thank you for your help.


Tom
MCSD
I Nab Terrorists
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top