R
Richard Smith
Hi,
I have 2 combo boxes, both based on queries, the second one, filter results
depending on what was selected from the first combo box.
When the form is opened it tests to see if the second box is null here is my
code -
Private Sub Form_Open(Cancel As Integer)
If IsNull(Me!cmbprojectreference) Then
Me.cmdaddimage.Visible = False
Else
Me.cmdaddimage.Visible = True
End If
End Sub
This works fine, however if I have selected values from each combo box(and
the subform displays results in the subform)and then decide to change the
value in the 1st combo box, I want the button to be disabled again until a
value is chosen from the 2nd combo box.
Any ideas
TIA
Rich
I have 2 combo boxes, both based on queries, the second one, filter results
depending on what was selected from the first combo box.
When the form is opened it tests to see if the second box is null here is my
code -
Private Sub Form_Open(Cancel As Integer)
If IsNull(Me!cmbprojectreference) Then
Me.cmdaddimage.Visible = False
Else
Me.cmdaddimage.Visible = True
End If
End Sub
This works fine, however if I have selected values from each combo box(and
the subform displays results in the subform)and then decide to change the
value in the 1st combo box, I want the button to be disabled again until a
value is chosen from the 2nd combo box.
Any ideas
TIA
Rich