Command Button Duplicate File

  • Thread starter Thread starter COMP5G
  • Start date Start date
C

COMP5G

I have a command button duplicate file in the database, how can I get the
command button to duplicate the file into a different database, or datasheet?

It would be really helpful, if someone could help me out with this!
 
You can duplicate a file with FileCopy.
Use Help in the code window for details.

If you are trying to duplicate the current file, doing this could give you
bad results. Several situations could give you locking errors, or the target
file may be bad (internally inconsistent.) Examples: forms are opened and
the data is being edited, reports or queries or recordsets that have locked
some tables, there are uncommitted transactions in progress, other users are
in the database, ...
 
Back
Top