Hi all I would like to restrict certain fields in Inventory Item Maintenance Options windows to certain user classes. - I can't use field level security. It has been tested for field locked and just doesn't work on these fields. - I can't use modified forms as this window is already modified to a level all users need to see. I have tested and the below code works - Private Sub Window_AfterOpen() If UserInfoGet.UserID = "GPUSERIDxxx" Then Category.Locked = True End End Sub Obviously it is not wise to hardcode a User ID in case the employee leaves. I need to hard code the user class but this does not seem to be available with UserInfoGet. I have seen previously at another workplace this had been achieved but did not create it myself. Thankyou!
↧