How to write comment in Ms Access SQL view?

Posted on 2005-04-04
Medium Priority
Last Modified: 2008-02-01

How to write comment in Ms Access SQL view?
Let say I want to write comment in front of the SQL statement like:
Comment: This statement is used to extract data from...
in MS SQL Server, by adding the symbol -- infront of the comment.
In MS Access, what symbol is being used for the comment?
Question by:Cola78
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 53

Expert Comment

ID: 13695619
You cant add comments to your query in the SQL view of your query (from the grid).
However, you can add comments in VBA code, using the ' .
LVL 53

Accepted Solution

Dhaest earned 80 total points
ID: 13695629
You can add comment to the query by selecting the query under the query-tab of the database window and press properties. (button or via right-click)
This comment is also visible when selecting the 'detail' view of the queries.

However it's not possible to store the comment "in" the query as far as I know.

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question