Hello, first post here and am quite new to this! Have Googled this all morning and can't work it out.
I have a form with unbound controls. I have a text box, with a command button at the end which when clicked loads an Open File dialog, which when used inserts the file path into the text box.
I've added a check box at the end which I want to use to disable of enable the command button. The DefaultValue of the check box has been set to False at Design Time.
Private Sub chkEmptyStarts_AfterUpdate()
'if check box clicked to On, clear text in lblStarts, and disable the 'cmdStarts button
'if check box clicked off, ensure that cmdStarts is enabled
If Me.chkEmptyStarts.Value = True Then
Me.txtStarts = ""
Me.cmdStarts.Enabled = False
ElseIf Me.chkEmptyStarts.Value = False Then
Me.cmdStarts.Enabled = True
End If
This is not working. On Access 2000. Can anyone help?
I have a form with unbound controls. I have a text box, with a command button at the end which when clicked loads an Open File dialog, which when used inserts the file path into the text box.
I've added a check box at the end which I want to use to disable of enable the command button. The DefaultValue of the check box has been set to False at Design Time.
Private Sub chkEmptyStarts_AfterUpdate()
'if check box clicked to On, clear text in lblStarts, and disable the 'cmdStarts button
'if check box clicked off, ensure that cmdStarts is enabled
If Me.chkEmptyStarts.Value = True Then
Me.txtStarts = ""
Me.cmdStarts.Enabled = False
ElseIf Me.chkEmptyStarts.Value = False Then
Me.cmdStarts.Enabled = True
End If
This is not working. On Access 2000. Can anyone help?
Last edited: