Hi Guys,
I have a subform that has 2 combo boxes on it;
I want to be able to make the second combo box visible AND active when the first cbo has a value of 1.
The before update event for the first cbo looks like the following;
Private Sub RadiationRecorded_BeforeUpdate(Cancel As Integer)
If Me![RadiationRecorded] = 1 Then
Me![Radiation].Visible = -1
Else
Me![Radiation].Visible = 0
End If
End Sub
However this sub does not work as it generates a "property not possible" type of message when the second cbo is selected!
What am I doing wrong please?
PS How do I refresh the form before I open it (in order to "hide" the dependant cbo of a new record)?
Many Thanks.
I have a subform that has 2 combo boxes on it;
I want to be able to make the second combo box visible AND active when the first cbo has a value of 1.
The before update event for the first cbo looks like the following;
Private Sub RadiationRecorded_BeforeUpdate(Cancel As Integer)
If Me![RadiationRecorded] = 1 Then
Me![Radiation].Visible = -1
Else
Me![Radiation].Visible = 0
End If
End Sub
However this sub does not work as it generates a "property not possible" type of message when the second cbo is selected!
What am I doing wrong please?
PS How do I refresh the form before I open it (in order to "hide" the dependant cbo of a new record)?
Many Thanks.