Filecopy

R

Rubens

Hi,

Using the following code in Access 2003 with windows XP:

line 1 start = now
line 2 filecopy a, b
line 3 end = now

Can I be sure that line 3 will only execute AFTER the filecopy in line 2 is
finished ? If this is the case then end - start = time needed for filecopy ?

If this is not the case, how can I be sure that line 3 will only be executed
AFTER filecopy in line 2 is finished ?

Thanks.
 
T

Tom van Stiphout

On Sun, 16 May 2010 12:54:01 -0700, Rubens

Try it with a really big file, and post back with your answer.
Thanks,

-Tom.
Microsoft Access MVP
 
J

John W. Vinson

Hi,

Using the following code in Access 2003 with windows XP:

line 1 start = now
line 2 filecopy a, b
line 3 end = now

Can I be sure that line 3 will only execute AFTER the filecopy in line 2 is
finished ? If this is the case then end - start = time needed for filecopy ?

If this is not the case, how can I be sure that line 3 will only be executed
AFTER filecopy in line 2 is finished ?

Thanks.

I'm not certain that it will prevent the problem, but I would suggest putting
in a line between 2 and 3:

DoEvents
 

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