Computer Learning Zone CLZ Access Excel Word Windows

The four most common chemically active elements in the universe - hydrogen, oxygen, carbon, and nitrogen - are the four most common elements of life on Earth. We are not simply in the universe. The universe is in us.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access SQL Seminar Part 2    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
SQL2 Lesson 3
Ina van Rooyen 

5 years 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  @Reply  
        
5 years 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 OP  @Reply  

5 years 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
Ina van Rooyen OP  @Reply  

5 years ago
The same SQL appears in the CategoryCombo and the VendorPriceUpdateF.  Is that correct?
Kevin Robertson  @Reply  
          
5 years ago
In your RowSource:

ProductID is misspelled, you have an extra ID on the end. Also, you appear to have a comma after ProductVendorNewPricingQ.
Hope this helps.
Ina van Rooyen OP  @Reply  

5 years ago
Hi Kevin, ProductIDID was spelled like that in my table as well, although I've changed it now and I removed the comma and it still was the same. I then decided to add the SELECT statement in the CategoryCombo Row Source, which was empty, and it worked.  
Does it make sense?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access SQL Seminar Part 2.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
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
PCResale.NET
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
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 3:58:47 AM. PLT: 0s