On Error Resume Next
DoCmd.RunCommand acCmdSizeToFitFormOn Error GoTo ErrorHandler
intChoice = Nz(Me![BackupChoice], 2)Select Case intChoiceCase 1
Me![cmdCustomBackupPath].Enabled = FalseCase 2
Me![cmdCustomBackupPath].Enabled = FalseCase 3
Me![cmdCustomBackupPath].Enabled = TrueEnd SelectErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox “Error No: “ & err.Number _
& “; Description: “ & err.Description
Resume ErrorHandlerExit
End Sub
Private Sub fraBackupOptions_AfterUpdate()
On Error GoTo ErrorHandler
intChoice = Nz(Me![fraBackupOptions].Value, 2)
strBackupChoice = CStr(intChoice)
strBackupPath = Nz(Me![BackupPath])Select Case intChoiceCase 1
Me![cmdCustomBackupPath].Enabled = FalseCase 2
Me![cmdCustomBackupPath].Enabled = FalseCase 3
Me![cmdCustomBackupPath].Enabled = TrueEnd SelectCreating Access Add-ins 14