Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > TechHelp > Directory > Access > Looking Up This Last Year by James Hopkins >
Back to Access TechHelp    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Looking Up This Last Year
James Hopkins 
     
3 years ago
Hey Guys, I have an "Customer History" form that displays information about the Customers Activities. Problem I ran into is, how to Lookup the Number of Estimates Created "This Year and Last Year". I was thinking about 'DMax' the 'Estimate Date' and 'DateDiff' the Estimate Date Year. What is the best way the achieve this correctly?
Scott Axton  @Reply  
      
3 years ago
Side by side so to speak?  Or just all together?

take a look at the Month-Over-Month video.  Would also work for years.
Kevin Robertson  @Reply  
          
3 years ago
I would use DCount to get the number of estimates per customer.
Something like this (in a query):

thisYear: DCount("*", "TableName", "CustomerID=" & CustomerID & " And Year(myDate)=" & Year(Date()))

lastYear: DCount("*", "TableName", "CustomerID=" & CustomerID & " And Year(myDate)=" & Year(Date())-1)

Just replace TableName with the name of your table and replace myDate with the name of your date field.

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

Next Unseen

 
 
What's This?

 

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: 9/18/2026 7:12:35 PM. PLT: 1s