Computer Learning Zone CLZ Access Excel Word Windows

Faith moves mountains... of inventory.

-104th Rule of Acquisition
 
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 
StateCombo Box Null
Richard Lanoue 
    
10 years ago
What I want to do is put a StateCombo Box.  On the Querry, Forms!InputF!StateCombo criteria under StateID...Works great until I leave it null.  In that case I want to show all the states... In VB Code I can do this but I can't in SQL... Seeing how I want to create a querry to export into Excell, I need to know how to make it so I can select all the records or some by state.  Any tips advice?   The State: StateID & "" I don't seem to have any success with.  In short if the Combo is null than pretend there is no code under the criteria and show the records of all the states as if it weren't a factor.



Reply from Alex Hedley:

Can you not use VBA?
If Me.YourCombobox = "" Then
    'Place code here to address selction of
End If

You could have a * as the all and pass that to your query with a LIKE

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 6:26:43 PM. PLT: 0s