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

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 1343
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.earthlink. 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**@packairinc.com> wrote in message
news:Qf********************@athenet.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.earthlink. 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*********@hotmail.com> wrote in message
news:aT******************@newssvr14.news.prodigy.c om...
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.earthlink. 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.earthlink. 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*********@hotmail.com> wrote in message
news:aT******************@newssvr14.news.prodigy.c om...
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
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...
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...
7
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....
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: 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
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,...
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...

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.