D
David G.
I've built a form to dynamically create SQL statements. My original
idea was to save the SQL Statements into a table ("tblCustomSQL") as a
string. (Table has 2 fields, "Name", and "SQL".) I'm using an "INSERT"
SQL statement to add records to tblCustomSQL.
I'm running into trouble with nested quotation marks. If the custom
SQL statement is formatted correctly, the quotations in the custom SQL
interfere with the INSERT statement. I've tried encoding the SQL
statement with markers (QUOTE - in place the multiple quotations),
but decoding is very messy.
I'm thinking it might be better create a QueryDef from the SQL.
Would greatly appreciate any suggestions or recommendations for how to
proceed.
THANKS!
David G.
idea was to save the SQL Statements into a table ("tblCustomSQL") as a
string. (Table has 2 fields, "Name", and "SQL".) I'm using an "INSERT"
SQL statement to add records to tblCustomSQL.
I'm running into trouble with nested quotation marks. If the custom
SQL statement is formatted correctly, the quotations in the custom SQL
interfere with the INSERT statement. I've tried encoding the SQL
statement with markers (QUOTE - in place the multiple quotations),
but decoding is very messy.
I'm thinking it might be better create a QueryDef from the SQL.
Would greatly appreciate any suggestions or recommendations for how to
proceed.
THANKS!
David G.