Howlsta
Vampire Slayer
- Local time
- Today, 11:52
- Joined
- Jul 18, 2001
- Messages
- 180
Does anyone know if there is a quicker way of doing the below rather than declaring all the visibilities one by one. I thought about the with ... end but as there are more than 1 controls in the below I'm not convinced it can be done.
Any Ideas folks?
Sub ShowCtl()
Me.fsubMarks.Visible = False
Me.cboYear.Visible = False
Me.txtStudent.Visible = False
Me.cboSelectModule.Visible = True
Me.TxtAvg.Visible = False
Me.txtStuAvg.Visible = False
Me.cmdGo.Visible = False
Me.txtName.Visible = False
End Sub
Rich
Any Ideas folks?
Sub ShowCtl()
Me.fsubMarks.Visible = False
Me.cboYear.Visible = False
Me.txtStudent.Visible = False
Me.cboSelectModule.Visible = True
Me.TxtAvg.Visible = False
Me.txtStuAvg.Visible = False
Me.cmdGo.Visible = False
Me.txtName.Visible = False
End Sub
Rich