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 
Can t figure out how to write this query
David Lafko 

12 years ago
The citation part of my database is the big quagmire lol

IN the Checking for Citations qry it pulls alarms greater than 3 as we cite on the 4th alarm. and generates a report this report shows all alarms previous and current and Should only be returning the listed group when there is a no for citation.

Example Freedom Toyota again has 4 alarms where they recived citations and 1 new alarm on 4/19/2014 where they did not recive a citation.. The qry pulls up all 5 so when they go to court the trooper can show the judge how many total alarms they had that were fault (which shows as #1) when they were cited previously and the new alarm to wich they are citing them for now.

PROBLEM: It is also pulling companies that have already been cited but show no new alarms that need to be cited on.. IE in the CITED column they all show yes instead of one of them showing NO.

Example: OUtten Chrysler Dodge and Jeep.. Shows 4 alarms with all of them being cited I do not need these on the report since they are not up for citation. They all Say yes

The basic premise on citation would be they need to have been sent a warning letter so that columb would say yes ( how ever on a new alarm the warning letter columb would also say no) and the cited columb would need to be a no.. If it is a No i need it to pull the previous yes's as well with the no as stated above.

If we get this to work right I will then move on to the update query but for me i think it will be better to do one thing at a time.

I am newer to access and really trying to learn the SQL so if you have an answer I would appreciate it. I have can email the database if you would like

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/16/2026 10:40:59 PM. PLT: 1s