A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What character(s) is(are) used to preface comments in Access SQL?



 
 
Thread Tools Display Modes
  #1  
Old December 4th, 2009, 04:35 PM posted to microsoft.public.access.queries
John
external usenet poster
 
Posts: 2,649
Default What character(s) is(are) used to preface comments in Access SQL?

I want to accomplish as simple task - adding comments in my sql so that it
is documented. Nowhere can I find this in the MS documentation or via a web
search. Thanks much!
  #2  
Old December 4th, 2009, 04:38 PM posted to microsoft.public.access.queries
Golfinray
external usenet poster
 
Posts: 1,597
Default What character(s) is(are) used to preface comments in Access SQL?

To comment out a line use ' type your documentation.
--
Milton Purdy
ACCESS
State of Arkansas


"John" wrote:

I want to accomplish as simple task - adding comments in my sql so that it
is documented. Nowhere can I find this in the MS documentation or via a web
search. Thanks much!

  #3  
Old December 4th, 2009, 05:10 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default What character(s) is(are) used to preface comments in Access SQL?

Access doesn't allow comments in your SQL :-(
--
Duane Hookom
Microsoft Access MVP


"John" wrote:

I want to accomplish as simple task - adding comments in my sql so that it
is documented. Nowhere can I find this in the MS documentation or via a web
search. Thanks much!

  #4  
Old December 4th, 2009, 05:34 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default What character(s) is(are) used to preface comments in AccessSQL?

Access DOES NOT support embedded comments in the SQL string.

You can in query design view use the description properties of the fields and
the query to do some documentation. And you can embed (as calculated fields)
text strings to use a comments. Yeah! That's really, really ugly and a
performance drag.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

golfinray wrote:
To comment out a line use ' type your documentation.

  #5  
Old December 4th, 2009, 05:54 PM posted to microsoft.public.access.queries
Bob Barrows
external usenet poster
 
Posts: 475
Default What character(s) is(are) used to preface comments in Access SQL?

That's VBA code, not Access SQL.

golfinray wrote:
To comment out a line use ' type your documentation.
--
Milton Purdy
ACCESS
State of Arkansas


"John" wrote:

I want to accomplish as simple task - adding comments in my sql so
that it is documented. Nowhere can I find this in the MS
documentation or via a web search. Thanks much!


--
HTH,
Bob Barrows


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.