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

Access runtime-action queries must be confirmed?

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 end with the Access runtime, I must confirm
every time an action query runs from VBA. I know that in the full version
of Access, a user can opt to turn off notification every time an action
query runs from VBA. Can this option be exercised using the Access runtime?
Or can I maybe put a VBA module in that will stop the confirmation?

Thank you for reading this.

Tammy
Nov 13 '05 #1
7 6316
TSanders wrote:
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 end with the Access runtime, I must confirm
every time an action query runs from VBA. I know that in the full version
of Access, a user can opt to turn off notification every time an action
query runs from VBA. Can this option be exercised using the Access runtime?
Or can I maybe put a VBA module in that will stop the confirmation?


DoCmd.Setwarnings False
DoCmd.Openquery "MyUpdateQuery"
DoCmd.SetWarnings True
--
This sig left intentionally blank
Nov 13 '05 #2
"TSanders" <ta*******@tamanders.net> wrote:
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 end with the Access runtime, I must confirm
every time an action query runs from VBA. I know that in the full version
of Access, a user can opt to turn off notification every time an action
query runs from VBA. Can this option be exercised using the Access runtime?
Or can I maybe put a VBA module in that will stop the confirmation?


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
Nov 13 '05 #3
Tony Toews wrote:
I prefer, if DAO, to use Currentdb.Execute strSQL,dbfailonerror command instead of
docmd.runsql. For ADO use CurrentProject.Connection.Execute strCommand,
lngRecordsAffected, adCmdText


I was going to suggest the .Execute method in my post (as I've done so
on many posts that start with this FAQ) but nowadays I find I'm thinking
do they have a reference to DAO? or have they succumbed to using the ADO
reference that MS forced on them at the start. This makes answering
simple queries here a lot longer :-(

--
This sig left intentionally blank
Nov 13 '05 #4
Yes, I have a DAO reference and no ADO reference. Too many of the users
didn't have the necessary files for me to use the ADO reference and
getting the files installed proved to be impossible on this particular
network, one suffering from a 900+ user base with only 2 administrators.
Thank you for your replies; I plan to try everything listed here on
Monday. :)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #5
I was going to suggest the .Execute method in my post (as I've done so
on many posts that start with this FAQ) but nowadays I find I'm thinking
do they have a reference to DAO? or have they succumbed to using the ADO
reference that MS forced on them at the start. This makes answering simple
queries here a lot longer :-(


Well, if it makes you more happy, do note that access 2003 now has retuned
the DAO ref by default.

I repeat:

MS listened to the people here, and the many posts that resulted in us
telling users to add the DAO ref. So, guess what? For the brand NEW version
of office 2003, the DAO is now again included as a default ref!!
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #6
Albert D. Kallal wrote:
I was going to suggest the .Execute method in my post (as I've done so
on many posts that start with this FAQ) but nowadays I find I'm thinking
do they have a reference to DAO? or have they succumbed to using the ADO
reference that MS forced on them at the start. This makes answering simple
queries here a lot longer :-(

Well, if it makes you more happy, do note that access 2003 now has retuned
the DAO ref by default.

I repeat:

MS listened to the people here, and the many posts that resulted in us
telling users to add the DAO ref. So, guess what? For the brand NEW version
of office 2003, the DAO is now again included as a default ref!!


That does make me happy :-) Although I just looked at it and it also
gives an ADO reference as well so people had better start prefixing
theit objects :-\

--
This sig left intentionally blank
Nov 13 '05 #7
"Albert D. Kallal" <ka****@msn.com> wrote in message
news:FcRRd.438582$6l.394526@pd7tw2no...
I was going to suggest the .Execute method in my post (as I've done so
on many posts that start with this FAQ) but nowadays I find I'm thinking do
they have a reference to DAO? or have they succumbed to using the ADO
reference that MS forced on them at the start. This makes answering simple
queries here a lot longer :-(


Well, if it makes you more happy, do note that access 2003 now has retuned the
DAO ref by default.

I repeat:

MS listened to the people here, and the many posts that resulted in us telling
users to add the DAO ref. So, guess what? For the brand NEW version of office
2003, the DAO is now again included as a default ref!!


Is a DAO reference even required for the following?

CurrentDB.Execute "SomeQueryOrSQL"

I thought I had seen previous posts that indicated that CurrentDB is still
available without a ref to DAO.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #8

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

Similar topics

12
by: Phil Powell | last post by:
<cfquery name="getAll" datasource="#request.dsn#"> SELECT U.userID, U.fname, U.lname, U.phone, U.lastLoggedIn, U.choiceId, U.experience, T.label AS teamLabel, R.label AS roleLabel FROM User U...
14
by: wolftor | last post by:
1) Is there a free runtime version of Access available that is more recent than the one for Access 2000? 2) If I create an application (MDE) in A2K, will it run on all later versions of Access?...
1
by: B&C | last post by:
Hello, I'm searching a runtime to read access databases on computers which doesn't have access installed. I found this runtime for access 2000, but I would prefer to use the access 97 "reader"....
2
by: Deano | last post by:
I use the Access 2000 MSI Wizard from Sagekey and they don't know if the bug documented on page 32 of the Access 2000 Developer`s Handbook Volume 2: Enterprise Edition still affects the runtime. ...
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
4
by: brooks | last post by:
I have an Access 97 app and the ADT and am considering selling it to the public. Is this viable? What issues might I have? I also have Access 2000 and could use that if it would be better. I...
9
by: Paul H | last post by:
As I understand it, to distribute a runtime version of Access 2003 with my app I need to spend £600 on "Visual Studio Tools for Office System package" which contains the RT plus a load of stuff I...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
4
by: David Kates | last post by:
I was one of the few who was able to download the Access 2007 runtime when it was available for a short time. I installed it but cannot figure out how it runs an Access 2007 database. There is no...
1
by: rickcross | last post by:
I am trying to use the Access 2007 runtime. I have a program that is fully working in 2007 but when I install the runtime version with same Operating system and Access 2003 installed I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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.