I have number of queries in a database, both saved, and SQL's as RecordSources and RowSources.
I want to find a method of listing only the updateable SELECT Queries.
I can eliminate a number of queries if the first word in the SQL is not "SELECT" e.g "TRANSFORM" , "INSERT", "UPDATE", "DELETE", and others if the word "UNION", "GROUP BY", "DISTINCT", "FIRST", "MAX" ,"MIN", "COUNT" appears in the SQL.
Am I correct in assuming if the word "LEFT JOIN" & "RIGHT JOIN" appear, it also won't be updateable?
That still leaves a lot of queries, many of which still won't be updateable.
I suspect there may be some clues in MsysQueries, but haven't yet fathomed them out.
Be grateful for any input
Phil
I want to find a method of listing only the updateable SELECT Queries.
I can eliminate a number of queries if the first word in the SQL is not "SELECT" e.g "TRANSFORM" , "INSERT", "UPDATE", "DELETE", and others if the word "UNION", "GROUP BY", "DISTINCT", "FIRST", "MAX" ,"MIN", "COUNT" appears in the SQL.
Am I correct in assuming if the word "LEFT JOIN" & "RIGHT JOIN" appear, it also won't be updateable?
That still leaves a lot of queries, many of which still won't be updateable.
I suspect there may be some clues in MsysQueries, but haven't yet fathomed them out.
Be grateful for any input
Phil
Comment