CraigDolphin
GrumpyOldMan in Training
- Local time
- Yesterday, 19:22
- Joined
- Dec 21, 2005
- Messages
- 1,570
If Not IsNull(Me.StudentID) Then Me.cboSelectStudent = Me.StudentID
If Me.cboSelectStudent & "" = "" Then
'stuff is visible
Else
'Stuff is not visible
End if
In the db I sent you, cboSelectStudent will never be null so the stuff will never be set to 'not visible'.
And incidentally, you could also just hide the tab control rather than all the subforms and controls on it individually.
You might be better off to use the form_open event to set all the 'stuff' not visible, then use the after_update event of the cboSelectStudent control to set the 'stuff' visible.
If Me.cboSelectStudent & "" = "" Then
'stuff is visible
Else
'Stuff is not visible
End if
In the db I sent you, cboSelectStudent will never be null so the stuff will never be set to 'not visible'.
And incidentally, you could also just hide the tab control rather than all the subforms and controls on it individually.
You might be better off to use the form_open event to set all the 'stuff' not visible, then use the after_update event of the cboSelectStudent control to set the 'stuff' visible.