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 Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Add Blank Records to Subform
James Allen 
    
5 years ago
I am working on a database to in time replace standard excel forms that depict the terminations/time-slots of communications equipment (typically capable of 24 connections on each terminal)... The query does return only "connected " positions ie 1,5,9,17 but the subform needs to show all 24 positions whether a connection record was returned or not.
I don't want to add thousands of "blank" records to the connection table, the table will be large enough without adding "non-connections". I considered looping through 1-24 and selectively running the query for a single connection position - if the query returns zero/null individually populating the subform-table but I haven't has much success.

more simply i need it to create a list showing all possible positions 1 through 24... and populate the the list where there are connections from the connections table for that terminal.

1- connected to terminal 5.17
2-
3-
4-
5- connected to terminal 3.1
6-
7-
8-

and so on... can i inject the blanks into the sub form without alot of extra unneeded data entry

Thanks
Richard Rost  @Reply  
          
5 years ago
You could make a table that literally just has the numbers 1 to 24 in it. Use this in an outer join with the table that actually has the data in it, joined by number. It's the same technique I use in Missing Months to show months that have no sales.
Richard Rost  @Reply  
          
5 years ago
BUT... even if you DID fill the subform with blank records, that wouldn't be much of a problem. Blank records like that take up almost no space in the database.
James Allen OP  @Reply  
    
5 years ago
Excellent...I'll use the missing month method.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 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:41:46 AM. PLT: 1s