Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
 
Access SQL Seminar Part 2
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   10 years ago

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.

SQL2 Lesson 3 Upload Images   Link  
Ina van Rooyen 
7 months ago
When I run the VendorPriceUpdateF, and select a Category from the Category List Combo, no items appear in the List Box.
I've done the lesson twice and end up with exactly the same problem.
I'm using Access from Office 365 and do find that there are very small differences compared to Access 2010. Not sure what the issue is.
Scott Axton
7 months ago
Ina -
Nine times out of ten I find that I have a typo if things are not running properly. Quote in the wrong place or parentheses not correct, etc.  It's really hard to help you trouble shoot what is happening when we cant see what you have.
please copy and post your SQL here and that will help us move forward.

Also, open the tables and verify for yourself that you do indeed have data that should be showing up.  If there is truly no matching data that would be a whole different issue.

Are you receiving any error messages?
Ina van Rooyen
7 months ago
Hi Scott, when the form opens all the items are listed in the List Box. When I select a specific category, the list box is empty with no error message.

CategoryCombo SQL
Private Sub LogIt(Description As String, Notes As String)

    DoCmd.SetWarnings False
    DoCmd.RunSQL "INSERT INTO LogT (Description, Notes) " & _
        "SELECT '" & Description & "', '" & Notes & "'"
    DoCmd.SetWarnings True
    
    
End Sub

Private Sub Form_Open(Cancel As Integer)

    LogIt "Price Update Form Opened", "Blah"
    RefreshProductList
    
End Sub

Private Sub RefreshProductList()

      If IsNull(CategoryCombo) Then
    
        WhereStr = ""
    Else
        WhereStr = "WHERE Category = " & CategoryCombo & " "
    End If

ProductList.RowSource = "SELECT ProductIDID, ProductCode, ProductName, " & _
        "Category, LastUpdated, UnitPrice, NewPrice, Profit " & _
        "FROM ProductVendorNewPricingQ, " & _
        WhereStr & _
        "ORDER BY ProductName;"

End Sub

Private Sub CategoryC
Add a Reply
Format Percent Upload Images   Link  
Joe Hood 
11 months ago
Hello Everyone, I have tried everything I can to get the MarkUp field to show up as a percent after switching the Category. Starts off as 20.00% but shows up as 0.05, 0.75, or 0.80 depending on which product is selected. Is this just a bug in Access 2016 or am I missing something? Thanks Joe
Richard Rost
11 months ago
It's tough to say what's wrong without seeing your database. Make sure you've got the value set up as a floating point number in the table (double, preferably) and then set the format as Percent. Remember the FORM's formatting will override anything in the table.
Add a Reply
Product List Blank Upload Images   Link  
John McFarlane 
14 months ago
In lesson 10, after following the video many times when I open ProductTopF my product list is blank. Any ideas for I've even started from scrach by creating a new blank form and follwed the video with the code line by line but the Product List is opening blank. If I place Order by as ProductList I get the list populated - any suggestions?
Richard Rost
14 months ago
Hi John. Without seeing your database it's almost impossible to tell you what you did wrong. Hundreds of people have taken this seminar without having this problem so it's most likely something you spelled wrong. Try removing the "TOP" clause and see if it works then.
Add a Reply

Show Older Comments...
View in Table Format

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

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

12/4/2021Hangman!
12/3/2021Access Beginner 2
12/3/2021Access Beginner 2 Lessons
12/3/2021Access Beginner 2
11/30/2021Import Multiline Cells
11/30/2021Adam's Access Games
11/29/2021Prevent Close
11/28/2021Random
11/22/2021Currency Symbols
11/13/2021Access Developer 36
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: access sql structured query language  Page Tag: whatsnew  PermaLink