mwallace
Posts: 2
|
| Posted: 09/07/2007, 12:42 PM |
|
Hello,
I am trying to hide a checkbox control based on a user login. I have placed the following code in the BeforeShow event of the checkbox, but the checkbox is still visible. Here's the code:
EventCaller.Visible = CCGetGroupID() <> 20
This should make the control hidden for userid 20, but visible to all others. Can anyone explain what is happening and how to correctly hide the control? Thanks,
Mark
_________________
Mark Wallace
www.allegroinfosystems.com |
 |
 |
mwallace
Posts: 2
|
| Posted: 09/07/2007, 4:40 PM |
|
Okay, I've sorted this out. The help file was out of date and was still referring to Extended HTML. Here is what worked:
set the Visible property of the control to Dynamic
in the control's beforeshow event placed the following code:
If CCGetGroupID = 6 Then 'this is the group id that I want to hide the control from
tblADPInfo.chkAssessmentAgreed.Visible = False '(syntax is tablename.controlname.visible)
Else
tblADPInfo.chkAssessmentAgreed.Visible = True
End If
Hope this helps someone else with a similar problem.
_________________
Mark Wallace
www.allegroinfosystems.com |
 |
 |
|