home *** CD-ROM | disk | FTP | other *** search
-
- Private Sub txtKeyName_Change()
-
- ' Check the status of the txtKeyName and
- ' txtSectionName fields to see if some command
- ' buttons can be enabled.
- ToggleCmdButtons
-
- End Sub
-
- Private Sub txtSectionName_Change()
-
- ' Check the status of the txtKeyName and
- ' txtSectionName fields to see if some command
- ' buttons can be enabled.
- ToggleCmdButtons
-
- End Sub
-
- Private Sub ToggleCmdButtons()
-
- ' Disable/enable certain command buttons based on
- ' whether or not the txtSectionName and txtKeyName
- ' fields are blank.
- If txtSectionName.Text = "" And txtKeyName.Text = "" Then
- cmdRetrieve.Enabled = False
- cmdAdd.Enabled = False
- cmdDelete.Enabled = False
- cmdUpdate.Enabled = False
- Else
- cmdRetrieve.Enabled = True
- cmdAdd.Enabled = True
- cmdDelete.Enabled = True
- cmdUpdate.Enabled = True
- End If
-
- End Sub
-