Very simple VB question

Ice Rhino

Registered User.
Local time
Today, 20:31
Joined
Jun 30, 2000
Messages
210
I have a chunk of code that creates and runs a number of dynamic SQL statements.

There have been occassions where the machine has not finished writing the information to the new query structure, and as a result the old query has been run instead.

Is the a way to delay each query run operation by 5 seconds. This will allow plenty of time for the queries to delete, rewrite and be in place ready for the next stage.

Example code and instructions would be great. I am guessing that some kind of count loop is what is require but I have no idea how to do that.

Many Thanks

Toni
 
You could use the SLEEP API

See details in the Microsoft Knowledgebase
 

Users who are viewing this thread

Back
Top Bottom