03-30-2011 09:15 AM
I want to be able to make a particular field readonly or disabled so that a user cannot modify the contents of that field for that one particular company but not the rest, What i have so far is code that runs when you get to that particular company I am just not sure how to change the field to readonly or disabled in visual basic.
03-30-2011 09:25 AM
I'm not aware of any way to specifically disable or make the field read-only for a single company.
It's sort of a work around, but you could monitor the field for changes via the FieldChanged/Changing events, if the field that is being changed is the one you dont' want to be, at that point you could prompt the user with a message box and set the value of the field to the desired value.
This was pretty off-the-cuff, there may be a better solution.