Topic: Disable View and Edit of a Record
In an application I am working on, the application will read the computer user name using the GetUserName function. This is to be held in a variable and will be written into a field called "Owner" when the user creates a new record.
Once a record is saved, if it has the word "System" as its "Owner" field entry, it should not be able to be opened by pressing the edit button or double clicking the record.
Ideally, if someone tries to edit the record it will display a message box advising that the record cannot be opened.
I can read a field value when the Edit button is clicked but I don't know how to then intercept the process if the field has some particular value.
I hope it all makes sense and any help would be appreciated.