Solved

Access Setting SetWarnings globally

Posted on 2009-04-10
9
271 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

911 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

21 Experts available now in Live!

Get 1:1 Help Now