megatronixs
Registered User.
- Local time
- Today, 12:32
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I'm trying to lock a checkbox when the forms open and depending if one has role as admin, it should unlock it.
When I add the below code in the on open form I get error:
This is the part that should onlock if it is admin:
Maybe it is me, or the checkbox is giving the error that causes the dialogbox to open to to choose the ID nr.
Greetings.
I'm trying to lock a checkbox when the forms open and depending if one has role as admin, it should unlock it.
When I add the below code in the on open form I get error:
Code:
Me.lock_case_admin.Locked = True
Me.lock_case_admin.BackColor = 12632256
This is the part that should onlock if it is admin:
Code:
Me.lock_case_admin.Locked = False
Me.lock_case_admin.BackColor = 16777215
Maybe it is me, or the checkbox is giving the error that causes the dialogbox to open to to choose the ID nr.
Greetings.