tags:

views:

38

answers:

3

hi

how to comment sentence in sql query - in access 2007 ?

thank's in advance

+2  A: 

According to this, you can't comment SQL code. To comment VBA code use a single quote (').

Traveling Tech Guy
A: 

If you're not trying to place a remark on a specific line of the code, but for the overall query, you can enter it in the Description under the query properties.

Jeff O
A: 

Here's one way:

SELECT query_comment_goes_here 
       (SELECT * FROM Employees WHERE 1 = 0), 
       O1.OrderID, O1.CustomerID, O1.OrderDate 
  FROM Orders AS O1;
onedaywhen