A family of Microsoft relational database management systems designed for ease of use.
Cases when I paste SQL string into SQL Editor:
Hi Marek,
I think your problem is analogous to some kind of "de-RTF-er" that I used long ago.
I had a form with one (large) control in which the original text was copied.
The form had also a command button to run VBA-code to remove all unwanted portions.
After clicking this command button there was still the possibility to manual edit the "cleaned" text. After this the text could be used for further processing, as in your case the SQL-property of a QueryDef.
Perhaps you can use the idea.
Imb.