Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

finding period elapsed between

Forum home » Delegate support and help forum » Microsoft Access Training and help » Finding period elapsed between two dates

Finding period elapsed between two dates

ResolvedVersion 2003

Jo has attended:
Access Introduction course
Access Intermediate course
Access Advanced course
Excel Intermediate course

Finding period elapsed between two dates

whats the easiest way to find how much of a period (days) has elapsed between 2 specific dates?

Edited on Tue 3 Mar 2009, 10:33

RE: finding period elapsed between two dates

Hello Jo
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.

Access tip:

Choosing data types in Access

Not sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field.

- The Text data type can accept up to 255 characters. For information that will be recorded in paragraphs, use Memo.

- Also use Text for numbers that aren't going to be used in calculations, e.g. phone numbers.

- Use the Currency data type for monetary amounts.

- Use Date/Time for dates.

- Most other numbers can use the Number data type, but the Field Size property may have to be altered.

- For fields that have only two alternatives (yes, no) use Yes/No data type. If there is likely to be a third entry option (e.g. maybe or don't know) use Text instead.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.