Solved

Access Setting SetWarnings globally

Posted on 2009-04-10
9
280 Views
Last Modified: 2013-11-27
Is there a way to setwarnings globally within access VBA?
0
Comment
Question by:keschuster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
9 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:keschuster
ID: 24118267
Tools > options > edit/find tab...  where is this?  In VB window?  I'm running Access 2007.
0
 

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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

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

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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