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 
Report only show null fields
John Muir 
     
2 years ago
I have a report with 10 fields. I want the report to show only fields that have no data so that the user can easily see what fields need to be populated. And, for example, if the first 3 fields have data and are not visible, i want the other 7 fields to move to the top of the report and only shows those fields.

I've tried conditional formating and colored the fields with no data which works sort of, but the the labels are still visable.

ChatGPT was of no use, so maybe this cannot be done.

Thanks for your help.

John
Adam Schwanz  @Reply  
           
2 years ago
Have you tried Can Shrink?Can Grow, Shrink

Otherwise you could use unbound fields and set their values and visibility with VBA when you load the report
John Muir OP  @Reply  
     
2 years ago
Can shrink rolls up the field, but not the label.

But, I want to display fields that haven't been populated, and not display fields or labels for fields that have been populated, so that my client can provide the necessary information.

Thanks,

John
Adam Schwanz  @Reply  
           
2 years ago
So there's no real reason to have the fields on a report if they're null, you shouldn't be editing values on a report, all we would need are the labels. Are you sure we shouldn't be making a form?
Kevin Yip  @Reply  
     
2 years ago
Hi John, by "move to the top of the report," do you mean sorting the data so that the records with empty fields appear as the top records?

If so, then this is a tricky thing to do, because not one field is empty all the time, so you can't sort by just one field.  In the first row, maybe Field1 is empty.  The 5th row, Field3 may be empty.  In the 100th row, maybe Field1, 5, and 7 are empty.  In other words, if you want ANY record that has an empty field to appear at the top, then no conventional sorting method can be done.

If it were me doing this, I would create a calculated Yes/No field in the query that indicates whether a record has an empty field or not, where True = has empty field(s).  Then I would sort by this Yes/No field ascendingly, since true comes before false in ascending order.  Then all the records with empty fields will be on top.

Then you still need VBA (the report's Format event procedure) to hide/unhide fields, etc. for each record.
John Muir OP  @Reply  
     
2 years ago
Just wanted to get back to the forum. Found an answer on ChatGpt. The code pulls all fields and labels without data. So it produces a list of fields that need data:
=IIf(Nz([Claim Number],"")="","Claim Number:
","") & IIf(Nz([Date of Accident],"")="","Date of Accident:
","") & IIf(Nz([Insured],"")="","Insured:
","") & IIf(Nz([Underwriting Company],"")="","Underwriting Company:
","") & IIf(Nz([AccidentLocation],"")="","Accident Location:
","") & IIf(Nz([Gender],"")="","Gender:","")

Thanks,

John

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access 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 9:33:49 PM. PLT: 0s