Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to Capture is Null Value From a Form Object
David Garcia 
    
3 days ago
Hello,
I have a query having criteria reference from Form objects.  For Example, In Query Design column, ReceiveDate criteria has >=[Forms]![Frm_C_NewPatient_Annotation_WorkList]![txt_FromDate_Search].[Value] And <=DateAdd("d",1,[Forms]![Frm_C_NewPatient_Annotation_WorkList]![txt_ToDate_Search].[Value])  This works great.
In another Query Design column called, LockedUser i can insert Is Null in Criteria to query records having LockedUser is Null.  Now, i want to change Is Null and instead reference a checkbox that i can toggle back and forth between Is Null and Is Not Null.  Having trouble with this.  I just learned that IIF in criteria can not reture Is Null or Is Not Null. I also tried referencing a Public Function from My criteria but, couldn't get that to work.  Can someone assist with my issue?
Thank You, David Garcia,
Houston, TX
David Garcia OP  @Reply  
    
3 days ago

Donald Blackwell  @Reply  
       
3 days ago
Have you tried the IsNull() function instead the statements.

For example:

Iif(isNull(MYFIELD), ACTION_IF_NULL, ACTION_IF_NOT_NULL)

or for the negative:

Iif(Not IsNull(MYFIELD), ACTION_IF_NOT_NULL, ACTION_IF_NULL)
Add a Reply Upload an Image
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/25/2026 6:22:23 PM. PLT: 0s