473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Access 97 - Turn of Access Warnings

PMB
Thank you in advance for any and all assistance.

I'm running Queries for updating my forms and I want to turn off the
Internal Warnings that access gives.

How do I do that?

Michael
Nov 12 '05 #1
4 6880
Not exactly clear what you are doing, but you could try one of these:

1. Turn SetWarnings off.

2. Change the settings under Tools | Options | Edit/Find | Confirm.

3. dbEngine(0)(0).Execute "MyQuery"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html

"PMB" <pm*****@megavision.com> wrote in message
news:KJ**************@news.uswest.net...
Thank you in advance for any and all assistance.

I'm running Queries for updating my forms and I want to turn off the
Internal Warnings that access gives.

How do I do that?

Michael

Nov 12 '05 #2
In code...
Docmd.setwarnings true or false

"PMB" <pm*****@megavision.com> wrote in message
news:KJ**************@news.uswest.net...
Thank you in advance for any and all assistance.

I'm running Queries for updating my forms and I want to turn off the
Internal Warnings that access gives.

How do I do that?

Michael

Nov 12 '05 #3
"PMB" <pm*****@megavision.com> wrote in message news:<KJ**************@news.uswest.net>...
Thank you in advance for any and all assistance.

I'm running Queries for updating my forms and I want to turn off the
Internal Warnings that access gives.

How do I do that?

Michael


DoCmd.SetWarnings False
DoCmd.OpenQuery "qupdWhatever"
DoCmd.SetWarnings True

On Error
DoCmd.SetWarnings True
Nov 12 '05 #4
"PMB" <pm*****@megavision.com> wrote:
I'm running Queries for updating my forms and I want to turn off the
Internal Warnings that access gives.


I prefer, if DAO, to use Currentdb.Execute strSQL,dbfailonerror command instead of
docmd.runsql. For ADO use CurrentProject.Connection.Execute strCommand,
lngRecordsAffected, adCmdText

If you're going to use docmd.setwarnings make very sure you put the True statement in
any error handling code as well. Otherwise wierd things may happen later on
especially while you are working on the app. For example you will no longer get the
"Do you wish to save your changes" message if you close an object. This may mean
that unwanted changes, deletions or additions will be saved to your MDB.

Also performance can be significantly different between the two methods. One posting
stated currentdb.execute took two seconds while docmd.runsql took eight seconds. As
always YMMV.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason | last post by:
I will explain (or at least try to) first and then give an example after. I need to append a number of rows from several tables into one master table. Unfortunately there are certain columns...
7
by: Robin Tucker | last post by:
I've been asked to turn our single-user database system into a multi-user system. At present, each user has a copy of the MSDE on their desktop machine and uses our program to access it. In...
15
by: dixie | last post by:
I have a command to open the Access Options dialogue from code: DoCmd.RunCommand acCmdOptions It also opens the Database Window behind it. Is it possible to open the Options without having...
4
by: SHPsalm139 | last post by:
If I make a change to a query in Access 2000 and click on the X in the upper right corner to close the query, I get the prompt "Do you want to save changes to the design on query 'Query1'? Normal...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
1
by: Maxwell2006 | last post by:
Hi, How can I turn off the compiler warnings in some specific spots in the code? I don't want to turn off warnings for all project. I remember we had PRAGMA feature in C++. Do we have the...
9
by: JBuckner | last post by:
My macro uses the Send Object (VBA Item.Send) function to email a spreadsheet to an Outlook contact list. I want the function to be completely automatic but Outlook displays a security warning...
24
by: marcwentink | last post by:
Is there a way to turn off depreacted warnings in Visual Studio 2005, Professional Edition? I've got this VB project ported from version 2003 to 2005, I am a bit cautious to already changing the...
14
by: fkbodley | last post by:
I am trying to upload a filtered form to excel. Using code someone posted to me I tried to make this work. But like all great code for a newbee.. IT DOSENT WORK! Can some one help me out. Code:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.