Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Query issue Upload Images   Link   Email  
David Nelson      
16 months ago
Hello all. I am working on a scheduling database and the vehicles are scheduled base on engine hours or kilometers.

The problem I am having is that when I generate a report, I can't see units which are due by kilometers and units which are due by hours at the same time. I hope someone can help me with this.

Units which are due display a -1 value.
David Nelson      
16 months ago

David Nelson      
16 months ago

Alex Hedley             
16 months ago
What output do you want to see?
Can you upload an example?
David Nelson      
16 months ago
I would like to see units that are due for a hourly PM and units that are due for Kilometer PM on a single report. When I set -1 as a criteria for both queries, nothing is displayed. However, if I set -1 criteria for only one query I get an output for the selected query.
David Nelson      
16 months ago

David Nelson      
16 months ago
I would like to see those two based on my report criteria.
Scott Axton            
16 months ago
One thing I see right off the bat is that you have an AND condition in you query for NextServTrig AND KiloPMReady.
Remember AND -- Across - Or -- Down
I the case that you show, neither of the records is true on both NST and IPR fields so they wont show up.
Kevin Yip       
16 months ago
Hi David, to show both columns with "-1" in the records, you need to put the two criteria on different lines in the query designer.  See picture below.  Note the word "or" on the left.  To do what you want, the query needs to show records in which either the hours column is due *or* the kilo column is due.  In the English language, you may say you want to show the hours column "and" the kilo column.  But in database lingo, this is an "or" operation.  This is a fairly basic topic, but it is important to distinguish between "and" and "or" in situations like this.  Richard has early courses on queries that can help.
Kevin Yip       
16 months ago

David Nelson      
16 months ago
Thank both for your assistance with this. It worked perfectly! I had also thought about it before checking the forum and came up with this: Expr1: [HrsShedulerQuery]![NextServTrigger] Or [KiloShedulerQuery]![KiloPMReady]. I went with your suggestion though. Thank you @Alex, Scott, and Kevin.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/15/2024 4:44:05 AM. PLT: 1s