Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I comment SQL code out in Microsoft Access?

Tags:

Is it possible to comment code out in the SQL window in Microsoft Access?

like image 422
Alex Gordon Avatar asked Jun 30 '10 18:06

Alex Gordon


People also ask

How do I comment out SQL code in access?

The syntax for creating the comment in SQL using — symbol is the following. Any text between — and the end of the line will be ignored (will not be executed). The comment started with — symbol must be at the end of the line in your SQL statement with the line break after it.

How do you add a comment in Microsoft SQL?

Comments can be inserted on a separate line or within a Transact-SQL statement. Multiple-line comments must be indicated by /* and */. A stylistic convention often used for multiple-line comments is to begin the first line with /*, subsequent lines with **, and end with */.


1 Answers

No. You cannot have any extraneous text in Microsoft Access (JET-SQL).

You can make some constraints ignored, e.g.,

Where  name = "joe" OR (state = "VA" AND 1=0) 

But that technique is a rather limited way to hide existing SQL.

like image 143
MatthewMartin Avatar answered Oct 04 '22 15:10

MatthewMartin