pbuethe
Returning User
- Local time
- Yesterday, 23:32
- Joined
- Apr 9, 2002
- Messages
- 210
I have a main form with a tab control. On the first page of the tab control I have a combo box, ElimCode. I want to show or hide 2 controls on the second page, Criteria_Met and On_Therapy, depending on whether ElimCode is null. (The controls should be shown if ElimCode is null, and hidden if it is not null.) I put the following code in the OnCurrent property of the form:
If Me![ElimCode] = Null Then
Me!Criteria_Met.Visible = True
Me!On_Therapy.Visible = True
Else
Me!Comments.SetFocus
Me!Criteria_Met.Visible = False
Me!On_Therapy.Visible = False
End If
The result is that the two controls are *always* disabled. The same thing happens if I change it to Forms!frmMain![ElimCode].
It seems to not be recognizing ElimCode somehow.
Would appreciate any help in getting this to work.
If Me![ElimCode] = Null Then
Me!Criteria_Met.Visible = True
Me!On_Therapy.Visible = True
Else
Me!Comments.SetFocus
Me!Criteria_Met.Visible = False
Me!On_Therapy.Visible = False
End If
The result is that the two controls are *always* disabled. The same thing happens if I change it to Forms!frmMain![ElimCode].
It seems to not be recognizing ElimCode somehow.
Would appreciate any help in getting this to work.