Solved

Access Setting SetWarnings globally

Posted on 2009-04-10
9
270 Views
Last Modified: 2013-11-27
Is there a way to setwarnings globally within access VBA?
0
Comment
Question by:keschuster
  • 3
  • 3
  • 3
9 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 24118200
do it in the
Tools > options > edit/find tab

in the Confirm box  make your selection

in vba

Application.SetOption ("confirm record changes"), 0
Application.SetOption ("confirm action queries"), 0
Application.SetOption ("confirm document deletions"), 0


change 0 to -1 to do the reverse
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24118211
tools/options and edit/find tab, look at the Confirm options
is that what u want?
if so then they can be set via vba
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24118217
okay, well I see cap has posted the vba code so I wont bother.
0
 

Author Comment

by:keschuster
ID: 24118267
Tools > options > edit/find tab...  where is this?  In VB window?  I'm running Access 2007.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:keschuster
ID: 24118293
I think I found it
confirm.png
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24118312
Thats the one, they are the same as A2003, just the menu display is different.
Always advisable to specify what version Access you are using in your question to get a better response.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 24118318
it will help if you will include in your post what version of access you are using..


;-)
0
 

Author Comment

by:keschuster
ID: 24118333
Isn't everyone running A2007? ;-)
Thanks
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 24118353
i am running 2000,2003,2007 most of the time 2003
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now