fieldName - any
text expression or text
field that refers to a field’s name
GetField evaluates fieldName, matches the result to a field in the table on which the calculation was performed, and returns the contents of that field.
For example, GetField("Phone") returns a value from Customer::Phone when GetField is calculated on the Customer table, and returns Company::Phone when GetField is calculated on the Company table.
To return the values of multiple fields, do not enclose fieldName in quotation marks, as in
GetField(fieldName), and specify a field that contains a value that matches the name of another field in the table. To change the value that GetField returns, change the value in the specified field to match the name of a different field in the table.
For example, a table has three fields: Customer::ContactMethod, Customer::Phone, and Customer::Email. When Customer::ContactMethod contains “Phone”, GetField(ContactMethod) returns the contents of Customer::Phone. However, when Customer::ContactMethod contains “Email”,
GetField(ContactMethod) returns the contents of Customer::Email.