473,837 Members | 1,726 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 1358
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
4381
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
10657
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
4199
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
4365
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
9846
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
10579
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
10633
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
9412
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5674
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5852
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4050
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.