VBA Program runs slowly

M

Mark

My program executes SQL statements from a VBA program.
It is fairly simple - it reads a record from a recordset
built by a query, and outputs the record several times to
a table.

All of a sudden it is executing very slowly. The CPU
usage averages about 25%.

Yesterday and all of last week (and the prior month) it
ran just fine, utilizing 100% of the CPU.

I have Compacted and repaired the database today. This
action has always made the program run faster when
the "slow bug" has struck, utilizing the 100% of CPU.

I did copy the database to a new directory today - but I
have done this often. The data coming into the VBA has
been updated too - but again this is something that has
been done in the past without a problem.

Thanks for your help,
Mark
 
M

Mark

Interestingly, the problem was trying to run the program
across the local network.

When the database was copied from the local network drive
to my desktop drive (C:\) it ran fast.

Mark
 

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