Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > DateDiff < Browse Select Files | Double Double >
DateDiff Function
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   2 years ago

Learn to use the DateDiff Function in Access

 S  M  L  XL  FS  Join Now

Calculate the number of days, weeks, months, etc. between two dates with the DateDiff Function


There is no Extended Cut for this video.


DateDiff Glossary Reference
DateDiff in Access Expert 28
DateDiff Function:
DateTime Seminar:
DateAdd Function:

Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


date diff function Upload Images   Link  
Mark Desens 
4 months ago
Hi Richard, I am going through the video on datediff. I did watch another one on datediff. One thing I don't understand is when you bring your table into a query and you calculate time in and time out using datediff I'm seeing you are putting it in the field spot. I did that but nothing is showing in the actual table. The fields I have named are StartTime, EndTIme and Call length. How do I use datediff in the Call length field. I tried it in the criteria but I get errors.
Scott Axton
4 months ago
Please review:   Context

Rather than play 20 questions, it is often helpful if you post screen shots of your form, code behind it, etc that would help us visualize what you are doing.  

You can upload screen shots via the original post in the upper right hand corner.
Walk us through step by step what you do to generate the error like we were 3rd graders.
What, specifically, is the error you get?
Adam Schwanz
4 months ago
I'm assuming you mean query expressions that you create in the query to do calculations with. These are NOT stored in the table, depending on use it's not wise to store the calculation either (there are some justifications such as a lot of calculations, across many records, ran frequently could take a long time to run and then could justify making a table field for them).

Query expressions only exist in the query and on things based off of the query, when you need to use them it will re-calculate them every time you use the query. If you base your form off of that query, you will be able to add the fields that you made in the query to the form, but again, they are not stored in a table.

If you have a justified reason to store all the calculations in your table, what you need to do is add the fields to your table and then use a VBA event (button or on current, whatever you want) to run the calculations and put the numbers in the right fields.
Add a Reply

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/27/2022Work Days
1/27/2022MyNetWorkDays (Free)
1/27/2022Access Developer 35
1/26/2022Yes/No Fields
1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links
1/17/2022Access Beginner 2
1/17/2022New Record on Top

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access tips datediff  PermaLink