Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 1st, 2009, 11:29 AM
benign benign is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 61 benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 50 m 5 sec
Reputation Power: 1
Sql design view comments?

I've always thought about this and never been able to find out how to do it? Now I REALLY need to comment some stuff because of the length.

How do you comment out text in SQL DESIGN VIEW?

Reply With Quote
  #2  
Old July 1st, 2009, 01:46 PM
rpeare rpeare is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2008
Posts: 1,093 rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 23 h 52 m 46 sec
Reputation Power: 227
You can't add comments to SQL code. You can however run a script that builds a SQL statement and you can comment the code.

for instance


Code:
Dim sSQL as string

'This SQL string selects only mickey mouse from the charcter list
sSQL = "SELECT * FROM Table_Disney WHERE (([CharacterID] = 1)


Then you can do whatever you like with the resulting SQL statement. I usually only do this when I'm modifying or adding/deleting records though.
__________________
----------------
If we've helped you and you have solved your problem please post that it's been resolved so we know! The suspense kills me!

Reply With Quote
  #3  
Old July 1st, 2009, 04:22 PM
benign benign is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 61 benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 50 m 5 sec
Reputation Power: 1
Quote:
Originally Posted by rpeare
You can't add comments to SQL code. You can however run a script that builds a SQL statement and you can comment the code.

for instance


Code:
Dim sSQL as string

'This SQL string selects only mickey mouse from the charcter list
sSQL = "SELECT * FROM Table_Disney WHERE (([CharacterID] = 1)


Then you can do whatever you like with the resulting SQL statement. I usually only do this when I'm modifying or adding/deleting records though.


I know you can comment like that in the vba ide.

I take it what you are saying is that the sql interpreter that buddies up with the query wizard/saved queries is there for sql code and only sql code? No extra functions at all.

Reply With Quote
  #4  
Old July 1st, 2009, 08:21 PM
rpeare rpeare is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2008
Posts: 1,093 rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 23 h 52 m 46 sec
Reputation Power: 227
Correct

Reply With Quote
  #5  
Old July 1st, 2009, 08:43 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,848 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 18 h 41 m 42 sec
Reputation Power: 562
It may help you to understand this if you realize that the Access Query Design (QBE) is just an interface to create SQL language, which is the common query language used by essentially all relational databases. Switching to "SQL View" merely gives you direct access to the SQL which is usually generated by the QBE. SQL has no provision for comments, it's like the DOS or Linux command line. Indeed, you can use SQL at the command line with many databases, such as MySQL.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #6  
Old July 2nd, 2009, 08:04 AM
benign benign is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 61 benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level)benign User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 50 m 5 sec
Reputation Power: 1
Thanks for the replies. I have a better grasp of it now.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Sql design view comments?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT