How to change property

I have asigned each user with different permissions. on a form, I want X user can not see a command button but other user can on the same form, my problem is in c/al code I can not change the command button’s property, can anyone suggest how to solve this problem. Thank you[V]

Hi here is one solution (HARDCODING!) Set the properties of the button: Name = MyButton Visible = False


**OnOpenForm**
If UserID = 'x'
  Then CurrForm.MyButton.Visible:=True;

bye Andre

Hi Andre, Thank you very much, it’s work…!