Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Data Not Showing With Query
Randy Wehnes 
    
4 years ago
I have a junction table which shows items issued to clients. A related table (via Staff_ID) shows the staff who issued the item. On the staff table I have a field that says Not_Active; True means that staff person is no longer here. When I try to limit my form by active staff only (by a query) I lose site of all staff who have issued items but are no longer active (Data is still there but not visible. I want to see who issued it regardless of active or not but limit future items issued to just active staff.
Juan C Rivera  @Reply  
            
4 years ago
show us your query
Randy Wehnes OP  @Reply  
    
4 years ago

Randy Wehnes OP  @Reply  
    
4 years ago
When I tie the Staff Combo box to the query and go back to the client check out form all "Not_Active" Staff have vanished. If the staff combo box is not tied to the query they are there.
Randy Wehnes OP  @Reply  
    
4 years ago
And by that I mean for past items which were checked out the Not_Active staff are not there. When using the query for new items being checked out only the active staff are in the combo box.
Adam Schwanz  @Reply  
           
4 years ago
Are you basing the form off that query? It shouldn't affect anything in the form unless you have some event that's doing it or the record source is that query. Can you show the form?
Randy Wehnes OP  @Reply  
    
4 years ago

Randy Wehnes OP  @Reply  
    
4 years ago
This is what is there when the staff combo box is not tied to the query. If it was tied to the query all of those names would not be there. Not sure if it matters but this is a sub-form.
Randy Wehnes OP  @Reply  
    
4 years ago
Oh and the sub-form is tied to the junction table not the query. The query is only tied to the staff combo box.
Randy Wehnes OP  @Reply  
    
4 years ago

Randy Wehnes OP  @Reply  
    
4 years ago

Adam Schwanz  @Reply  
           
4 years ago
Not completely sure I'm on the right page with you here so just taking a shot,

So you're basing this form off a query where you limit the staff to only active? And then you're using the same query for the combo box? If so, that will hide all the records regardless of if they had ever issued something, the form should be based on the table with no query criteria to show everything that's been issued. The combo box can be based on the query where they hide staff that is not active. If this is not what you're saying can you send an image of the record source for the form and the row source for the combo box?
Richard Rost  @Reply  
           
4 years ago
Sounds like an outer join issue
Randy Wehnes OP  @Reply  
    
4 years ago
As of right now the subform is based off of a table and the combo box points to just a table called "Staff"; no query's. This returns all staff past and present on a client's record.

If I limit the combo box with a query showing just active staff then the staff combo field in all previous issued items goes blank and the combo box only shows active staff.

I want to see all staff who have issued items in the past but limit the drop down to only active staff.
Randy Wehnes OP  @Reply  
    
4 years ago

Scott Axton  @Reply  
      
4 years ago
Unfortunately, I believe this is one of those cases where you will need to store the Staff Member in a separate field for historical purposes.  Otherwise the Combo Box is doing what you have told it to do.  You can't have it one way for data entry and another for display.
It's a case of having your cake and eating it too.

To do that you could put an after update event in you Combo Box to set the value in the field.

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: 8/30/2026 2:24:53 AM. PLT: 1s