SQLExplorer: Use globals as Search Values
3 posts
• Page 1 of 1
Posts: 2
Joined: Fri Sep 25, 2015 3:39 am |
I'm trying to use a global ( g_P1Start ) as the value in a search that is expecting a date. g_P1Start is a global with a date result. I've tried entering "\g_P1Start\" but this also generate an error message, "This does not appear to be a valid date value." |
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Right. You can't use fields like that IN the SQL Explorer interface. Instead, enter some example criteria in the interface and get your query working. Once it is, you'll copt the query as a FileMaker calculation and paste it into your file: when you do, you can replace the hand-entered criteria with the global field which will hold your criteria.
For example I might write a query and test it with "M" as the criteria. When I copy the query from SQL explorer it looks like this:
But then when I get to my file I'll paste this in and replace "M" with my global field, like this:
Hope that helps, John John Sindelar
SeedCode |
Posts: 2
Joined: Fri Sep 25, 2015 3:39 am |
Thank you.
Didn't realize that I could insert field names referencing them in FileMaker format (TO::fieldname). Actually, thought you made a type and tried all sorts of ways to enter a. fieldname. Nothing worked until I followed your instructions literally. Lo and behold, it worked! Thanks very much. |
3 posts
• Page 1 of 1
Return to FileMaker Products (General)
Who is online
Users browsing this forum: No registered users and 3 guests