Copy in code

M

mirna

Hi

I want to copy a folder and it's contents from a folder
and copy it in another Folder, and after delete it, how
can I do this by code

ex: copy the folder (Adress) from "c:\Client\Adress" to
the folder Employee "c:\Employee\"

Can I do this in code when the user click on a bottom ?

Thanks
Mirna
 
F

Fredg

Mirna,

Sub RenameOrMoveDb()
' Rename and/or move a database
Dim OldName As String
Dim NewName As String
OldName = "C:\Client\Address.mdb"
NewName = "C:\Employee\Address.mdb"
Name OldName As NewName
End Sub

Moves the Address.mdb from Client folder to the Employee folder.
If you wish to also rename the Address database, do so in the NewName
variable.
 

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