Advertisement

04.22.2007 at 12:37AM PDT, ID: 22526268
[x]
Attachment Details

Comparing dates in Access to see Total number of days between to field values

Asked by StephenJD in Microsoft Access Database, SQL Query Syntax

Tags: dates, access, compare

I have two date fields in a MicroSoft Access table that contain Date Values. I want to compare the two fields to get the number of days between the two dates. i.e. - And order is placed on 01/01/07 and shipped on 01/10/07. Howmany days are between. (the answer to that is obvious of course)

I need to get this Number of days value for every record in the table and definately do not want to do this manually. Here is the SQL I used in the last query I ran to try to get these values (obviously it does not work...

PROCESSING_TIME:[TBL_BLAH_BLAH].[ORDER_DATE]-[TBL_BLAH_BLAH].[SHIP_DATE]
This expression rendered negative values, so I knew it was time to approach the altar...lol

Thanks for any help you can offer...Start Free Trial
[+][-]04.22.2007 at 12:40AM PDT, ID: 18953579

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: dates, access, compare
Sign Up Now!
Solution Provided By: DatabaseMX
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.22.2007 at 12:42AM PDT, ID: 18953581

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2007 at 12:43AM PDT, ID: 18953586

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2007 at 12:43AM PDT, ID: 18953587

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.22.2007 at 12:45AM PDT, ID: 18953590

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2007 at 12:49AM PDT, ID: 18953596

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32