I've never used OpenQuery to execute an action query, I've always used
db.Execute (where db is a DAO database object) so I'm not sure how this
advice will apply to your situation, but I find that DbEngine.Idle often
helps with this type of timing issue. A little trial-and-error should reveal
whether it will help in your code, and where it is required.
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
WSUHoss3 said:
Please somebody help me take a crack at this
tables, then it runs a query that imports data from a linked table to one of
the tables that was cleared out. After that it proceeds to run 6 modules
that do the same thing with different variables (they rank each one of my
colums based on the criteria of each). After that it runs one more update
query to take all that information and put it in a new table and runs one
final module to rank all the prior rankings based on weighted averages. The
problem I'm running into is that it doesn't seem to update the tables in
time before the last update query runs so it displays all zeros for
rankings. I know it works because I can go step by step slowly and have it
work correctly. I hope this makes more sense. Thanks for your help.