The DBRELATIONNAME function returns the name of a specified relation in a database.
database is the name of a database and must include the full path if not in the same directory as the open document.
index is the relation number, starting at 1.
For example, you know a database called wineshop, located in a folder c:\ability\samples, contains at least one relation:
DBRELATIONNAME("c:\ability\samples\wineshop.adb", 1)
returns the name of the first relation in the database.
Suppose you enter "c:\ability\samples\wineshop.adb" into a cell in a spreadsheet, say A1. Then the following:
DBRELATIONNAME(A1, DBRELATIONCOUNT(A1))
returns the name of the last relation.
See also: