Select Case strBackupChoiceCase “1”Same folder as back end databasestrBackupPath = strBackEndDBPathCase “2”Backups folder under back end database folderstrBackupPath = strBackEndDBPath & “Backups\”Case “3”Custom folderstrBackupPath = strPathEnd SelectDebug.Print “Backup path: “ & strBackupPathOn Error Resume NextRecheck whether selected path is valid.Set sfld = fso.GetFolder(strBackupPath)
If sfld Is Nothing Then
If strBackupChoice = “3” Then
strTitle = “Invalid path”
strPrompt = strBackupPath _
& “ is an invalid path; please select another custom
path”
MsgBox strPrompt, vbOKOnly + vbExclamation, strTitle
GoTo ErrorHandlerExit
ElseIf strBackupChoice = “2” ThenCreate folder.Set sfld = fso.CreateFolder(strBackupPath)
End If
End IfOn Error GoTo ErrorHandlerCreate proposed save name for backup.strDayPrefix = Format(Date, “mm-dd-yyyy”)
strSaveName = Left(strBackEndDBName, _Part III Adding More Functionality to Office
