access
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Access

Access

resolvedResolved · Low Priority · Version 2003

replyReply Mon 2 Mar 2009, 15:55Delegate Stephanie said...

Stephanie has attended:
Excel Intermediate course
Access Introduction course

Access

How to date diff with a date of birth to calculate the age of the person on a certain future date.

For upcoming training course dates see: Pricing & availability

replyReply Tue 3 Mar 2009, 10:35Trainer Cress said...

RE: Access

Hello Stephanie
Thank you for your question

If you have the two dates stored in two seperate fields I would create a simple query and use the following:

Expr1: Dates!Date2-Dates!Date1

This will give you the number of days. (In this example I have created a table called Dates with two fields, Date2 holding the later date and Date1 holding the earlier date.)

If you wanted the result in years you could use this and just format the query result field accordingly:
Expr1: ([Dates]![Date2]-[Dates]![Date1])/365

You can also use DATEDIFF formula which is explained in more detail on this link:

http://office.microsoft.com/en-us/access/HP010984861033.aspx

If this resolves your question, please mark it as resolved. If not, please reply with more information.

Kind regards
Cress

Tue 10 Mar 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
microsoft-access-course and other Microsoft training courses.

Access tip:

Copy a Previous Record's Values to a New Record

If you often enter the same value in one field of a table, there are two methods to save re-typing the data.

1. Use Ctrl+' (apostrophe) to repeat the value input in the previous record.

2. Change the field's DefaultValue property in Design View to the most commonly used value.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard