Computer Learning Zone CLZ Access Excel Word Windows

Live long, and prosper

-Spock
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Search Seminar    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Not Showing All Records
Tony Roberts 
    
5 years ago
This SQL coding works just great, I an mow using it everywhere. The only problem I have is that when I click on the 'Clear' button, set up exactly as in your video, all the search fields clear, but the docmd.ShowAllRecords does not show all the records again.

The form is stuck on your last filter. You can refilter, works just fine, but the only way to show all the records again is to close and open the form. there must be something that is not clearing?

Any help appreciated.
Richard Rost  @Reply  
          
5 years ago
Does it work properly in my template?
Tony Roberts OP  @Reply  
    
5 years ago
Yes, sorry should have checked there first, so it must be something in my coding! I noticed in the template that each search field had an AfterUpdate Requery event, which I have added, but still not showing all records after a filter has been applied?

In the Status text box this remains after clearing the filters: SELECT * FROM q1PupilList WHERE txtSurname LIKE "*sm*" ORDER BY txtSurname
Tony Roberts OP  @Reply  
    
5 years ago
Got it! Me.RecordSource was in in the clear sub
Private Sub btnClear_Click()
    StatusFilter = ""
    PupilCodefilter = ""
    Surnamefilter = ""
    PreNameFilter = ""
    CAT1Filter = ""
    CAT2Filter = ""
    HouseFilter = ""
    AdmissionFilter = ""
    
    Me.RecordSource = "q1PupilList"
    DoCmd.ShowAllRecords
Richard Rost  @Reply  
          
5 years ago
Awesome. Glad you figured it out.

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

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 2:47:01 AM. PLT: 0s