Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access Setting SetWarnings globally

Posted on 2009-04-10
9
Medium Priority
?
283 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 2000 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
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 

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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

670 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