[AccessD] Copying a file

Heenan, Lambert Lambert.Heenan at AIG.com
Tue Jan 27 14:40:42 CST 2004


The disadvantage of using the VBA FileCopy routine is that if the source
file is in use the copy will fail. However the API CopyFile will copy the
source even if some application has it open.

Then again, some people might want the copy blocked in those circs.

Lambert

> -----Original Message-----
> From:	Gustav Brock [SMTP:gustav at cactus.dk]
> Sent:	Tuesday, January 27, 2004 2:35 PM
> To:	Access Developers discussion and problem solving
> Subject:	Re: [AccessD] Copying a file
> 
> Hi Gowey
> 
> How about
> 
>   FileCopy source, destination
> 
> /gustav
> 
> > Could anyone tell me how you would copy a file from one name to another?
> > I currently have in my application to rename a file by using:
> 
> >  Name strFileName As strNewName
> 
> > What I would like to be able to do is copy it to another file name
> > rather than renaming it.
> 
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com


More information about the AccessD mailing list