Here's the code (it was at work) for two distinct VB executables that I use to back up multiple back ends at one time (they're in a common folder). I use the Task Scheduler to run backup 3X a day and then run the "purge" routine once a week to get rid of unnecessary backup archives:
Jim's method is ideal if you have one db. You can run the backup at the close event a form to make it automatic.
[tt]
'BACKUP ROUTINE
Private Const c_TargetFolder As String = "\\Folder\MyBackups\"
Private Const c_SourceFolder As String = "\\Folder\MyTables"
Public Sub Main()
On Error GoTo Err_Backup
Dim strBackUpFolder As String
Dim FSO As New FileSystemObject
Dim strDateTag as String
strDateTag = Format(Now, "mmm_dd_hh-mm"
strBackUpFolder = c_TargetFolder & "Backup_" & strDateTag
FSO.CopyFolder c_SourceFolder, strBackUpFolder, True
MsgBox "Backup Successful for " & strDateTag, vbExclamation, "BACKUP COMPLETED"
Exit_Err_Backup:
Exit Sub
Err_Backup:
MsgBox "Backup failed due to: " & vbCrLf _
& Err.Number & ": " & Err.Description, vbCritical, "BACKUP FAILED"
Resume Exit_Err_Backup
End Sub
'BACKUP FOLDER PURGE--anything over 5 days old
Option Explicit
Private Const c_ExistingBackups As String = "\\folder\MyBackups\"
Private Const c_NumDaysPrevious As Integer = 5
Public Sub Main()
On Error GoTo Err_Backup
Dim FSO As New FileSystemObject
Dim BkFldr As Folder
Dim Fldr As Folder
Dim dtmRefDate As Date
dtmRefDate = ((Date) - c_NumDaysPrevious)
Set BkFldr = FSO.GetFolder(c_ExistingBackups)
For Each Fldr In BkFldr.SubFolders
If Fldr.DateCreated < dtmRefDate Then
Fldr.Delete
End If
Next
MsgBox "Backup Folder Purge Successful for " & Format(Now(), "mmm dd hh:mm"

, vbExclamation, "PURGE COMPLETED"
Exit_Err_Backup:
Exit Sub
Err_Backup:
MsgBox "Purge failed due to: " & vbCrLf _
& Err.Number & ": " & Err.Description, vbCritical, "PURGE FAILED"
Resume Exit_Err_Backup
End Sub
[/tt]