Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
 
Access Search Seminar
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   10 years ago


Back to Access Search Seminar
 

Not Showing All Records Upload Images   Link  
Tony Roberts 
7 months 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
7 months ago
Does it work properly in my template?
Tony Roberts
7 months 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
7 months 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
7 months ago
Awesome. Glad you figured it out.

This thread is now closed. If you wish to comment, start a NEW discussion, below.
 


Back to Access Search Seminar
 

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:

5/16/2022Referential Integrity
5/15/2022Invoicing Member Discussion
5/13/2022Multivalued
5/12/2022Number Field Size
5/11/2022Create Word Document
5/11/2022Export to Word
5/10/2022On Click Event Timing
5/9/2022Invalid Use of Null
5/7/2022Event Handler
5/6/2022Database Title & Icon
 

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
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