There is no way to add comments to SQL statements in Access - unless you
are using a passthrough query.
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Thanks, I 100% miss read your question. I though you were asking for
in-line sql...not in-line comments!!!
My Sorry....
No, there not a comments section. You can use the "description" property of
a saved sql query. You not see this description unless you change the view
to display details for the objects in question (form, reports or in your
case query..).
Jet saved QueryDefs do not support comments of any kind within the
SQL. You might consider putting your comments in the query's
Description field, which is accessible by right clicking the saved
query and choosing Properties. I don't know if this is accessible in
code or not, though, but you needn't worry about that unless you
need it in code.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.