K
kidkosmo
Hi, All,
I've been trying to interpret me needs from the following thread, but
have not been able to do so. When I tried to apply it to my table and
fields, I'm getting some funky results:
http://groups.google.com/group/micr...fference+between+two+records#a1d50ff9465684ad
I do need to do something similar. I have a table containing records
of comments associated to my master record using the KeyID. I need to
calculate the working days (using the dhcountworkdaysa calculation
found on the Access Web) between comments to determine if our staff is
contacting customers at least every three days. Where I'm struggling
is with the earliest comment. If it is the first comment, I would
like it to return a zero value since that's that jumping off point
(accept in the case of New records, I want to calculate the difference
between the last status change and the current date).
Any help would be greatly appreciated. I have pasted some sample data
below.
KeyID StatusDesc strCSRegion datStatusChange Comment_Date
10113161108 New CENTRAL 5/28/2010 12:07:24 PM 5/30/2010 9:36:02 PM
10168352464 Contacting Client CENTRAL 4/26/2010 10:56:45 AM 4/26/2010
2:25:54 PM
10168352464 Contacting Client CENTRAL 4/26/2010 10:56:45 AM 5/3/2010
4:43:02 PM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
9:08:29 AM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
9:08:29 AM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
10:40:21 AM
1047233653357 New WEST 5/28/2010 10:29:18 AM 5/30/2010 9:36:02 PM
I've been trying to interpret me needs from the following thread, but
have not been able to do so. When I tried to apply it to my table and
fields, I'm getting some funky results:
http://groups.google.com/group/micr...fference+between+two+records#a1d50ff9465684ad
I do need to do something similar. I have a table containing records
of comments associated to my master record using the KeyID. I need to
calculate the working days (using the dhcountworkdaysa calculation
found on the Access Web) between comments to determine if our staff is
contacting customers at least every three days. Where I'm struggling
is with the earliest comment. If it is the first comment, I would
like it to return a zero value since that's that jumping off point
(accept in the case of New records, I want to calculate the difference
between the last status change and the current date).
Any help would be greatly appreciated. I have pasted some sample data
below.
KeyID StatusDesc strCSRegion datStatusChange Comment_Date
10113161108 New CENTRAL 5/28/2010 12:07:24 PM 5/30/2010 9:36:02 PM
10168352464 Contacting Client CENTRAL 4/26/2010 10:56:45 AM 4/26/2010
2:25:54 PM
10168352464 Contacting Client CENTRAL 4/26/2010 10:56:45 AM 5/3/2010
4:43:02 PM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
9:08:29 AM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
9:08:29 AM
10424957372 Contacting Client CENTRAL 5/28/2010 10:22:58 AM 5/28/2010
10:40:21 AM
1047233653357 New WEST 5/28/2010 10:29:18 AM 5/30/2010 9:36:02 PM