Access 2007-2013
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
NEW Release: Access Advanced Level 2    dismiss

News      User Comments     History     Notify Me

5/17/2011 12:25:14 AM
Access SQL Seminar Part 2
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
This nearly five (5) hour long video seminar will pick up where Part 1 left off. You will learn more about the SQL programming language. We will focus on action queries, aliases, joins, crosstabs, union queries, aggregate functions, and more.

This seminar has several goals. You will:

1. Learn about Action queries and when to use them
2. Discover how to launch queries from VBA code
3. Create Aliases for your field and table names
4. Learn the different types of Table Joins
5. Construct a Union query
6. Work with a Crosstab query
7. Perform calculations in your SQL statements
8. Explore the different Aggregate query functions
9. Utilize string, math, time/date, and other query functions

Click here for more information on the SQL SEMINAR PART 2.

Permanent Link
Course Link: Access SQL Seminar Part 2
Keywords: access sql structured query language
Page Tag: whatsnew
Post Reply

SQL Seminar Comment from James Gray @ 12/8/2016
Richard,

I have owned this seminar for quite a while now and am using it to develop SQL to put into existing forms and reports to replace formal queries as the data source.  In one instance I have a crosstabe query that is the data source for one of my reports.  The query works just fine for the report but when I copy the SQL and place it into the report data source I get an error: "Cannot use the crosstab of a non-fixed column as a subquery".  The report uses only one query as its datasource and that query is not dependent upon any other query.  If I return to using the query itself as the datasource, everything returns to normal and the report runs fine.  Any ideas?


Reply from Alex Hedley:

So you aren't setting the SQL in vba you are copy and pasting it into the Record Source of the object? I'm not sure why this would be better that using a Query Object.
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from Jyotsana J @ 12/31/2013
Hi Richard
I am having trouble working SQl code after update where we select single category such as keyboard to shows just keyboard records. I have seen the videos so many times but SQL is not working. Here is my code
Private Sub CategoryCombo_AfterUpdate()


ProductList.RowSource = "SELECT ProductID, ProductCode, ProductName, " & _
    "UnitPrice, Category, LastUpdated, NewPrice FROM ProductVendorNewPricingQ " & _
    "WHERE Category =  " & CategoryCombo & "  " & _
    "ORDER BY ProductName;"
    

End Sub

Please tell me where i am wrong.
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from eddy geijselaers @ 9/24/2011
Richard,
SQL 2 Seminar Database
I forgot to mention that some of us (me) still working with Access XP or other older versions. Is it possible to convert to the older versions from AC 2010?
again
eddy peanut


Reply from Richard Rost:

Yes, you can backward-convert an Access 2010 database (under File > Save & Publish). If you're using features that are unique to 2010, you will lose them, however. A simple database is no problem.
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from eddy geijselaers @ 9/24/2011
Dear Richard,
The Access Seminar SQL 2 Database is not yet available, can you tell when it will be?

With kind regards
eddy peanut


Rick: I'm embarrassed to say I can't find it! I don't think that I was planning on saving it because there isn't much to it... but I'll keep looking.
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from Mubeezi Micah @ 5/28/2011
Dear Richard,

Once again you made me look a fool. While watching Video 10 time index 13.50, i couldn't believe my eyes. How i wish i had watched this single line of code 3 months ago? It looks so simple but never did it ever cross my brain that it is possible. Have you demonstrated using the RecordSource property like this before? If you ever did, then i missed that class.

Regards,

MICAH


Reply from Richard Rost:

I know I've showed you how to create a query and then use that same query to feed a form and a report, but I don't think I've ever showed you this exact technique before (pulling the RowSource property out of a listbox to use it as the RecordSource of a report). Pretty cool, eh? That's why you want to learn SQL... once you know it, you'll realize that it sits under almost EVERYTHING in your database.

What I really like is that it's SO much easier to quickly edit, append, or delete records once you know the SQL action queries. You can do with one line of code (DoCmd.RunSQL) the same thing that takes 10 to 15 lines of code to do with a recordset... and I love recordsets!
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from David Spens @ 5/24/2011
Thank you so much Richard - it worked a treat, although because some of the intermediate fields were NULL I had to use the + sign in places, experimenting with the arrangement of +'s and &'s.  This seems to work fine:
Address: [Address1] & Chr(13) & Chr(10) & [Address2]+Chr(13)+Chr(10) & [Address3]+Chr(13)+Chr(10) & [Town]+Chr(13)+Chr(10) & [County]+" " & [PostCode]
It has saved me a lot of headache with nested IIf's!
Many thanks,
David


Reply from Richard Rost:

Like that trick, huh? :)
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from Alex Hedley @ 5/19/2011
Another Excellent Seminar.

What a great find with the & and +, that will save extra coding :)

[Loved the Superman 3 comment, check out a film called Office Space for other references about that.]


Reply from Richard Rost:

Thanks.

I love Office Space. One of my favorite movies. My wife and I were calling each other "no talent ass clowns" for weeks after seeing that the first time.
Show Just This Thread        Post Reply
Access SQL Seminar Part 2 Comment from Mubeezi Micah @ 5/17/2011
Wow! I have just had a pick at the contents of the seminar. Now i know why it took you a bit longer than you had earlier anticipated. Great work Richard!
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
 
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 5+4:
  
  Notify me when the News is updated.
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

1/19/2017Recording Access Advanced 3
1/17/2017Microsoft Access Advanced 2
12/7/2016Access Advanced 2 is Finished
9/20/2016Microsoft Access Advanced 1
9/17/2016Access Advanced 1 is Finished
6/11/2016Microsoft Access Expert 32
6/9/2016New Access Class Finished
3/9/2016Microsoft Access Expert 31
8/16/2015Access Registration Seminar
8/2/2015Microsoft Access Expert 30
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP