If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to find the difference between to dates in different rows?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-06, 11:30
cuneyt cuneyt is offline
Registered User
 
Join Date: Nov 2002
Posts: 59
How to find the difference between to dates in different rows?

Hi everyone...

That's my report
Date..............Carriage No
12/06/2006..........2864
09/06/2006..........2862
26/06/2006..........2862
05/06/2006..........2862
08/06/2006..........2860
29/05/2006..........2860
01/06/2006..........2859
02/06/2006..........2857
28/06/2006..........2856
14/06/2006..........2856
13/06/2006..........2855
02/06/2006..........2814

So I would like to find date difference between same carriage numbers.
For Example 2862, how many days between first and second, second and third entry but I'd just skip if there is only one entry as 2859.

Thanks
Cuneyt

Last edited by cuneyt; 10-03-06 at 11:33.
Reply With Quote
  #2 (permalink)  
Old 10-04-06, 17:03
csamuels csamuels is offline
Registered User
 
Join Date: Mar 2006
Location: south jersey, usa
Posts: 53
query a recordset for a specific record number.
if the rowcount is one, skip. use recordset.getrows with ubound
save date for a record
compare that date to the next record
repeat until finished.
__________________
"They say Moses split the Red Sea
I split the blunt and rolled the fat one, I'm deadly"
-- Tupac 'Blasphemy'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On