Speed with Macro

A

alan

I built a series of four queries into a macro and ran
them on 100,000 records and it took 6 minutes. I then
ran the same macro (4 queries) on 1,000,000 claims and it
has been running for hours. What is up with that?
Shouldn't it run 60 minutes?
 
L

Larry Linson

"alan" wrote
I built a series of four queries
into a macro and ran them on
100,000 records and it took 6
minutes. I then ran the same
macro (4 queries) on 1,000,000
claims and it has been running for
hours. What is up with that?
Shouldn't it run 60 minutes?

No, not necessarily. How long it will run depends on a number of factors
and, at best, isn't necessarily a simple straight line projection.

If you'd post a simplified form of the queries, someone might be able to
give you some worthwhile suggestions.

Larry Linson
Microsoft Access MVP
 
N

Nikos Yannacopoulos

Alan,

In my experience, when you're dealing with this order of
magnitude of record count, you'de far better off working
with recordsets through VBA code than running queries
through macros. Chances are you'd end up with a fragment
of the execution time (possibly a small fragment!).

Nikos Y.
 
K

Kimjac

hello
Alan,

In my experience, when you're dealing with this order of
magnitude of record count, you'de far better off working
with recordsets through VBA code than running queries
through macros. Chances are you'd end up with a fragment
of the execution time (possibly a small fragment!).

Nikos Y.
 
K

Kimjac

sdasd
Alan,

In my experience, when you're dealing with this order of
magnitude of record count, you'de far better off working
with recordsets through VBA code than running queries
through macros. Chances are you'd end up with a fragment
of the execution time (possibly a small fragment!).

Nikos Y.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top