I am trying to disable a button, if a user opens a form. The button is an approval button and it can only be enabled if the Manager opens the form. So I have a field that contains Username() to a field with a default value that gets populated when the user click insert on the Manager information. This fields default is the FirstName.Lastname of manager. I want to compare the Username() to this and if it matches enable the approve button, and do this on the formload. I have tried a bunch of different things and cannot get this to work.
I have not used coding in years and I am very rusty, and the knowledge I have is limited with C#. So any help would be appreciated.