Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

How can I save a file I have as another file.
I have a file myfile.mdb and want to save it as myfilecopy.mdb, while I still keep the original, that is, this is a copy.

I get the name of the file without extension as
nameoffile = left(originalname,len(originalname-4)

now, how do I save nameoffile as nameoffile & "copy.mdb" ?

Thanks,

Herts
 
Create a variable with the old file name and new file name. Then use:

FileCopy sSourceFile, sDestinationFile

RKA:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top