A
Ayo
I have 2 checkbox on a form and a button. The button is disabled when the
form is loaded and enabled when either of the checkboxes is checked. What I
want to do is set things up such that when the checkboxes are both unchecked,
the button is disabled. I tried the On Current event of the form, see below,
but that didn't work.
Any ideas?
Thanks
Private Sub Form_Current()
If Me.chkFilterBy.Value = False And Me.chkTimeRange.Value = False Then
Me.cmdFilter.Enabled = True
Else
Me.cmdFilter.Enabled = False
End If
End Sub
Private Sub Form_Load()
Me.cmdFilter.Enabled = False
Me.txtTodaysDate = Now()
Me.tblConstructionLog_subform1.Form.RecordSource = "SELECT * FROM
tblConstructionLog WHERE FALSE"
End Sub
form is loaded and enabled when either of the checkboxes is checked. What I
want to do is set things up such that when the checkboxes are both unchecked,
the button is disabled. I tried the On Current event of the form, see below,
but that didn't work.
Any ideas?
Thanks
Private Sub Form_Current()
If Me.chkFilterBy.Value = False And Me.chkTimeRange.Value = False Then
Me.cmdFilter.Enabled = True
Else
Me.cmdFilter.Enabled = False
End If
End Sub
Private Sub Form_Load()
Me.cmdFilter.Enabled = False
Me.txtTodaysDate = Now()
Me.tblConstructionLog_subform1.Form.RecordSource = "SELECT * FROM
tblConstructionLog WHERE FALSE"
End Sub