I don't see a need for a button. The ObjectID field can be formatted with a pop up menu or a drop down list such that you can select an object by name, but the value list enters the object's ID number.
But what you want to do seems odd. If my computer needed maintenance and this the related record is linked to the object record for my computer, why would I want to link the maintenance record to a completely different object?
Good question. We have lots of people reporting maintenance issues but at the time of record creation they are assigning them to the wrong object. When the maintenance team reviews all of the issue records created they often find they have been assigned to the wrong object and need to be reassigned.
The solution doesn't need to be a button. If selecting the ObjectID field in the maintenace ticket view could bring up a drop down of object names that would then input the associated ObjectID instead of the name that would be perfect. I'm able to add the drop down menu for the ObjectID field, but when I select an object it is still inputting the name and not the ID number. Is there a simple fix for that?
OK I figured it out and it was much easier than I thought. I selected the ObjectID field and in the Inspector window under Data I selected Values List and created a new list. For the value list I specifed values from a field. I then set it to display values from the Object ID and the Object Name, and finally selected the box to only show the 2nd field values (ie. the object names). Everything appears to be working properly.
Thanks Phil you definitely helped me find a much simpler method.