Thanks for you responce.
I do have the correct library referenced in tools reference window.
Below is my front end:
Set WshNetwork = CreateObject("WScript.Network")
GetUser = WshNetwork.UserName
Set WshNetwork = Nothing
'Change the LUNmae location below. It's best to use the UNC path and filename.
'It's also best to clone an mde verses and mdb file but this script will work with either.
'Do NoT use this script unless you've either split the MSAccess data files and are using MSAccess linked tables
'Or SQL Server linked tables.
LUName = "O:\Quality\CAPA\clean\CAPAHNS.accdb"
oldname = LUName
'Change the mde in the line below to mdb for mdb files. GetUser gets the user's loginID for Windows.
newName = Replace(LUName, ".mdb", "") & "-" & GetUser & ".mdb"
retval = 0
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Copy file - this code below can be used to copy other files as well.
retval = objFSO.CopyFile(oldname, newName, True)
Set objFSO = Nothing
Dim objShell
Set objShell = CreateObject("Wscript.Shell")
'Now open the new MSAccess cloned file with the user name. Change MSAccess.exe to execute other file types.
objShell.Run "MSAccess.exe """ & newName & """ "
Set objShell = Nothing
Regards: