Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4095 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is it possible via ExecuteSQL to use a variable like this?

Let (

@sort = INFORMATION::exsqlsort

ExecuteSQL ( " SELECT "name" FROM "TOPICLIST"

WHERE "_fk_infoparent_id" = ?
ORDER BY "name" @sort" ;

"";

"";

INFORMATION::_kp_information_id

)

)

Then I would go to a field named INFORMATION::exsqlsort setup as radio button with the choices ASC and DESC.

Posted

I believe it needs to be =

...
ORDER BY "name" " & @sort ;
...

Or simply =

...
ORDER BY name " & INFORMATION::exsqlsort ;
...

since translating the field to a variable doesn't really accomplish anything here and it's not necessary to quote the fieldname "name".

This topic is 4095 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.