Searches the named record object in the predefined table object using the specified name and opens it in the specified mode.
A smart pointer to the object if successful, otherwise a null smart pointer.