473,385 Members | 1,958 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,385 software developers and data experts.

action queries confirmation

I just installed MS Access 2007. Is there any way to turn off the
confirmation of action queries in 2007 ?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200712/1

Dec 23 '07 #1
4 3582
On Sun, 23 Dec 2007 17:46:12 GMT, "destinman via AccessMonster.com"
<u18648@uwewrote:

Check out:
DoCmd.SetWarnings

-Tom.

>I just installed MS Access 2007. Is there any way to turn off the
confirmation of action queries in 2007 ?
Dec 23 '07 #2
On Dec 23, 7:02*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Sun, 23 Dec 2007 17:46:12 GMT, "destinman via AccessMonster.com"

<u18648@uwewrote:

Check out:
DoCmd.SetWarnings

-Tom.
I just installed MS Access 2007. *Is there any way to turn off the
confirmation of action queries in 2007 ?- Hide quoted text -

- Show quoted text -
Offioce Button Access Options Advanced Untick "Confirm Action
Queries"
Dec 23 '07 #3
"destinman via AccessMonster.com" <u18648@uwewrote:
>I just installed MS Access 2007. Is there any way to turn off the
confirmation of action queries in 2007 ?
Inside macros or code?

If VBA code 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 weird 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
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Dec 24 '07 #4
For more info on Tony's suggestion, see:
Action queries: suppressing dialogs, while knowing results
at:
http://allenbrowne.com/ser-60.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tony Toews [MVP]" <tt****@telusplanet.netwrote in message
news:ts********************************@4ax.com...
"destinman via AccessMonster.com" <u18648@uwewrote:
>>I just installed MS Access 2007. Is there any way to turn off the
confirmation of action queries in 2007 ?

Inside macros or code?

If VBA code 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 weird 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
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Dec 24 '07 #5

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

Similar topics

9
by: Jack | last post by:
Hi, I got a asp form page where the POST ACTION = confirmation.asp page is used to save the values collected from text boxes from the form in a database. For example txtTotalOutlay field is being...
8
by: Ian Davies | last post by:
Hello I am trying to run a few INSERT queries only if the user clicks 'continue' in a <a href> The queries takes variables created from SELECT queries. I have tried to acheive this by putting The...
4
by: Coy Howe | last post by:
In tools options you can shut off the Confirm Action Queries. I am wondering is there a way to do this with access runtime. So when a program is distrubuted the action query confirmation box does...
7
by: TSanders | last post by:
Wize ones: I created an Access database for a local telco that is split into a front and back end. I would like to distribute the Access runtime along with the front end. When I use the front...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
5
by: HS Hartkamp | last post by:
Hi all, I am working with fairly large databases (> 500 Mb / < 2,000,000 rexcords), and often need to do action queries on these. I have the feeling that much of the computing power is going...
1
by: ezderek | last post by:
For many years if I wanted to run an action query from code, I've used code something like this --- dim qd as query dim sSQL as string dim db as database set db = currentdb() sSQL = "UPDATE...
1
by: sweetpotatop | last post by:
Hi, I have an asp.net project written in C# It has a list of records for users to delete and select. When user click the "Delete" button, I would like to ask the user to confirm before I...
6
by: RSbroman | last post by:
I have created an append query that I would like to run when the DB is opened. However I do not want the end user to receive the "yes" "no" confirmation box when the query is being run. Can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.