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 
Get 2nd to Max record
Shloma Spielman 
   
2 years ago
Hi,
I have a reorder report based on sales of a date criteria since there are certain items that sell very slow I would like to include on the report the date when I sold the item before (meaning 1 before the last) any idea how to get it done.
Thank you
Juan C Rivera  @Reply  
            
2 years ago
Im thinking a query
SELECT TOP 2 MyDate FROM MyTable ORDER BY MyDate DESC;

try it and tell us what happened

Shloma Spielman OP  @Reply  
   
2 years ago
Thanks for your reply, I need the date for each item?
Richard Rost  @Reply  
          
2 years ago
Juan's query will return the last two records in your order table, sorted by date. You might need to add other criteria as well, such as the product ID. See Top X.
Shloma Spielman OP  @Reply  
   
2 years ago
Looks like I didn't clarify enough.
I have a query that returns the sum of the quantity of multiple items and I want to have a column on there which returns the date it was sold last time prior to the last how do I make the query that show it so then I can make a relationship to my existing query.
I hope that clarifies enough..
Richard Rost  @Reply  
          
2 years ago
I've actually got a video on this topic coming out soon. Stay tuned.

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 6:51:22 AM. PLT: 0s