Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   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   18 months 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

Members

There is no Extended Cut for this video.

Links

DateDiff Glossary Reference
DateDiff in Access Expert 28
DateDiff Function: https://599cd.com/DateDiff
DateTime Seminar: https://599cd.com/DateTime
DateAdd Function: https://599cd.com/DateAdd

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

Resources

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

Questions?

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 
15 days 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
15 days 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
15 days 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.
 
Subscribe
 

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

9/26/2021Sliders
9/25/2021Convert Currency
9/25/2021Get Data from Web API
9/25/2021Access Developer 32 Lessons
9/25/2021Access Developer 33
9/25/2021Access Developer 33 Lessons
9/25/2021Access Developer 33
9/24/2021Export HTML
9/22/2021Access DevNet Testimonials
9/20/2021Letter Writer
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access tips datediff  PermaLink