Computer Learning Zone CLZ Access Excel Word Windows

Science is an attempt, largely successful, to understand the world... Microbiology and meteorology now explain what only a few centuries ago was considered sufficient cause to burn women to death.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Search form problem again
Hazel Huang 
    
3 years ago
Thank you, Kevin Robertson, for your valuable advice.  It was indeed the problem, and after adding the ID field into the Query, things worked out!

However, it's not quite worked out yet, as the list came back as blank when clearing out all search and requery.  In fact, when I open the list form, it is blank.  I'll have to put in the begin year and end year search in order to get the full list (or by click on the clear search button which default begin year and end year), as the default values in data in the property sheet still return the form blank.  Although I can work with this, it seems bizzard.  Would you be able to advise what might be the problem?

Below is the VBA code, following the Search Form 2.0 video instructions.  If I change BeginYearSearch and EndYearSearch to = "", then the list is blank.  The data type for both BeginYearSearch and EndYearSearch is short text, but the text is extracted (via a vba code) from a long text field that contains the number.

Private Sub SetDefaults()
    
    BeginYearSearch = 1900
    EndYearSearch = 2050
    ReferenceSearch = ""
    PaperTypeSearch = ""
    ResearchTopicSearch = ""
    TeachingTopicSearch = ""
    DataTypeSearch = ""
    UsefulReferenceSearch = Null

End Sub

Private Sub BeginYearSearch_AfterUpdate()
    
    Me.Requery
        
End Sub

Private Sub ClearSearchBtn_Click()
    
    SetDefaults
    Me.Requery
        
End Sub

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor Forum.
 

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 5:19:38 AM. PLT: 1s