473,659 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Action Queries In Series

If a subroutine runs twelve action queries, will they run one-at-a-time
where one finishes before the next one starts or will one or more run
simultaneously? If they don't run one-at-a-time, how can they be made to do
it?

Thanks!

Steve
Nov 13 '05 #1
8 1353
PC Datasheet wrote:
If a subroutine runs twelve action queries, will they run
one-at-a-time where one finishes before the next one starts or will
one or more run simultaneously? If they don't run one-at-a-time, how
can they be made to do it?

Thanks!

Steve


They will be run in series with each one waiting until the preceeding one is
finished. In general you have to go out of your way to make code statements NOT
behave this way.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
If your concern is that all the queries succeed of fail, wrap them in a
transaction, then commit or rollback based on the success of all the
queries.

"PC Datasheet" <no****@nospam. spam> wrote in message
news:iL******** *****@newsread2 .news.atl.earth link.net...
If a subroutine runs twelve action queries, will they run one-at-a-time
where one finishes before the next one starts or will one or more run
simultaneously? If they don't run one-at-a-time, how can they be made to do it?

Thanks!

Steve

Nov 13 '05 #3
Thanks, Ron!

That wasn't my initial concern but I am going to apply your suggestion.

Steve
"paii, Ron" <pa**@packairin c.com> wrote in message
news:Qf******** ************@at henet.net...
If your concern is that all the queries succeed of fail, wrap them in a
transaction, then commit or rollback based on the success of all the
queries.

"PC Datasheet" <no****@nospam. spam> wrote in message
news:iL******** *****@newsread2 .news.atl.earth link.net...
If a subroutine runs twelve action queries, will they run one-at-a-time
where one finishes before the next one starts or will one or more run
simultaneously? If they don't run one-at-a-time, how can they be made to

do
it?

Thanks!

Steve


Nov 13 '05 #4
Thanks, Rick, for the quick response!

I have seen in the newsgroups posts saying something in a procedure happens
before something preceding is finished. Is that contrary to what you say?

I have also seen recommendations in the newsgroup to use Do Events to allow
something to complete before another thing happens. Is that contrary to what
you say?

Steve
"Rick Brandt" <ri*********@ho tmail.com> wrote in message
news:aT******** **********@news svr14.news.prod igy.com...
PC Datasheet wrote:
If a subroutine runs twelve action queries, will they run
one-at-a-time where one finishes before the next one starts or will
one or more run simultaneously? If they don't run one-at-a-time, how
can they be made to do it?

Thanks!

Steve


They will be run in series with each one waiting until the preceeding one
is finished. In general you have to go out of your way to make code
statements NOT behave this way.

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

Nov 13 '05 #5
"PC Datasheet" <no****@nospam. spam> wrote in message
news:lj******** *****@newsread2 .news.atl.earth link.net...
Thanks, Rick, for the quick response!

I have seen in the newsgroups posts saying something in a procedure
happens before something preceding is finished. Is that contrary to what
you say?

I have also seen recommendations in the newsgroup to use Do Events to
allow something to complete before another thing happens. Is that contrary
to what you say?


Do Events forces a yield to the operating system.
Nov 13 '05 #6
If you use docmd to open a form, docmd will return before the form is done
opening, unless opened it as a dialog box. You could create 12 forms with
one of the action queries in the on open event. Then open each form in your
function. I would bet that Access would slow to a crawl and/or crash if you
tried it.

"PC Datasheet" <no****@nospam. spam> wrote in message
news:lj******** *****@newsread2 .news.atl.earth link.net...
Thanks, Rick, for the quick response!

I have seen in the newsgroups posts saying something in a procedure happens before something preceding is finished. Is that contrary to what you say?

I have also seen recommendations in the newsgroup to use Do Events to allow something to complete before another thing happens. Is that contrary to what you say?

Steve
"Rick Brandt" <ri*********@ho tmail.com> wrote in message
news:aT******** **********@news svr14.news.prod igy.com...
PC Datasheet wrote:
If a subroutine runs twelve action queries, will they run
one-at-a-time where one finishes before the next one starts or will
one or more run simultaneously? If they don't run one-at-a-time, how
can they be made to do it?

Thanks!

Steve


They will be run in series with each one waiting until the preceeding one is finished. In general you have to go out of your way to make code
statements NOT behave this way.

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


Nov 13 '05 #7
Keith wrote:

Do Events forces a yield to the operating system.


That's only part of it, the API Sleep function does that also but the
other thing about DoEvents is that it allows your application to process
messages from the OS (Mouse Clicks, keystrokes, etc).
Nov 13 '05 #8
PC Datasheet wrote:
If a subroutine runs twelve action queries, will they run one-at-a-time
where one finishes before the next one starts or will one or more run
simultaneously? If they don't run one-at-a-time, how can they be made to do
it?


It's sequential unless you are using ADO against a SQL Server and use
Asynchronous calls to the queries.
Nov 13 '05 #9

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

Similar topics

4
4375
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 not appear? Thank you, Coy
5
10639
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 into building a table of changes so that you can be prompted "Are you sure to change xx records", and be able to reply no. I regularly get messages that say "Insufficient memory or disk space, you won't be able to undo; continue?"
1
4191
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 tableA SET field1 = 999 WHERE field2 > 0" set qd = db.createquerydef("",sSQL) qd.execute ' sometimes with dbFailOnError
7
4353
jinalpatel
by: jinalpatel | last post by:
I have a report which is based on a macro. Macro is serieas of open queries and a single open report query. When I run this report from my switchboard form it gives me the following series of errors. First it says "Please wait a moment while queries are run. The report will open automatically.Click ok to continue. When I hit "OK", there appears an "Action Failed" dialogue box, which has only one activated button called "Halt", which says the...
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.