I currently have a database backup button in my database. It grabs the database where it currently is, and makes a copy of it, then makes a new folder with the Month day year. Well, I do multiple updates daily (and space is not an issue). So, question is, can you have access make and name a new folder with hours and minutes?
Code:
'Customer Issues BACKUP Set fso = CreateObject("Scripting.FileSystemObject") Rootpath = "S:\Workgroups\APC Power Delivery-Contract Services\Student Engineer\Customer Issues\Customer Issues BACKUPS\" & Month(Date) & "-" & Day(Date) & "-" & Year(Date) & "\" If Not (fso.FolderExists(Rootpath)) Then fso.CreateFolder (Rootpath) Shell "xcopy " & """" & Rootpath & """" & " " & """" & Rootpath & """" & " /e /y" Shell "xcopy " & """" & "S:\Workgroups\APC Power Delivery-Contract Services\Customer Issues\Customer Issues.mdb" & """" & " " & """" & Rootpath & """" & "/y" Exit Sub End Sub
Comment