Use this function to find the table relationship of a given field.
TableNumber := FieldRef.RELATION
The fieldref that refers to the field for which you want to find the table relationship.
Property Value/Return Value
The number of the table that has a relationship with the field referred to by fieldref.
This relationship is set up through the properties.
You can use this function for several purposes such as to determine lookups or to check to see if you have permission to read from a table.
This function is similar to thefunction.