0

I think this is a very dumb question but I just can't find how to do it.

I'm using ExecuteSQL in filemaker but I noticed the result text doesn't contain the column name, any idea how I can make the result show column name?

Thanks in advance!

1 Answer 1

2

You could simply add a text line to your calculation, before calling the ExecuteSQL() function, e.g.:

"SomeField,AnotherField¶" 
& 
Execute SQL ( "SELECT SomeField, AnotherField FROM YourTable" ; "" ; "" )

Note that you can use the GetFieldName() function to protect your calculation against fields being renamed.

You can also use a query like:

SELECT * FROM FileMaker_Fields WHERE TableName='YourTable'

to retrieve ALL field names of a table.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.