Hello Everyone,
I am attempting to customise subform datasheet columns for different
users by making them visible or not depending on which ward they are
in.
I am using the tag property on the controls, eg enter GW in the tag of
each column which staff from GW need to see.
However some controls need to be viewed by staff in more than one
ward. So I might need GW 1N to be placed in the tag property. I have
tried Case ctl.tag Like "*GW*" but it does not work.
does anyone have a suggestion of how I can rectify this or a better
way of achieving my goal?
Regards
Kevin
Private Sub DoctorsHandoverSheetSubform_Enter()
Dim ctl As Control
Dim frm As Form_DoctorsHandoverSheetSubform
If FieldChooserSwitch = 0 Then
Select Case Ward
Case "GW"
For Each ctl In DoctorsHandoverSheetSubform
Select Case ctl.Tag
Case ""
GoTo groh
Case ctl.tag Like "*GW*"
ctl.ColumnHidden = False
End Select
groh:
Next
Case "1E"
etc etc
End Select
FieldChooserSwitch = 1
Else
End If
End Sub