Lock a single field

I am looking for a solution in which the pay rate field starts out locked when the user opens the form and then is unlocked based on the security level of the individual who opens the form. What is the best strategy to accomplish this?

Hi Glenn,

Firstly welcome to Dynamics User Group.

You will need to add the securify level to the user.

then in the ONFormOpen trigger use the EDITABLE command to control the field in question

e.g.

UserRec.GET( USERID );

IF UserRec.“Security Level” < 2 THEN
CURRFORM.“Pay Rate”.EDITABLE( FALSE );

Thanks Dave,

Worked great!

Glad to Help [:D]