Note: VBA level is pretty low (3 day course)
I have a table with: [App], [Status], [Reason], [Time].
There is an unlimited number of App. There are 11 [Status] (duplicate are possible) and a limited number of [Reason] for each of the Status (duplicates are possible).
The Time field is a time stamp of when the Status/Reason fields were captured. The table is sorted by [App] then [Time]
I have the VBA code to calculate the Time Difference so that is not an issue.
App Status Reason Time Ex 1 Ex 2 Ex 3
98128 INCOMPLETE 7/21/08 1:18 PM 0.00
98128 COMPLETE 7/21/08 1:18 PM 0.44
98128 REVIEW 7/21/08 2:02 PM 0.00
98128 COMPLETE 7/21/08 2:02 PM 1.41 1.41
98128 REVIEW 7/21/08 3:43 PM 0.31 1.11
98128 PENDING ASSET 7/21/08 4:14 PM 0.40
98128 APPROVED 7/21/08 4:54 PM N/A
98129 INCOMPLETE 7/21/08 1:25 PM 0.00
98129 COMPLETE 7/21/08 1:25 PM 0.42
98129 REVIEW 7/21/08 2:07 PM 0.00 1.45
98129 COMPLETE 7/21/08 2:07 PM 1.37 1.37
98129 REVIEW 7/21/08 3:44 PM 0.08
98129 RESET TO NOT DONE 7/21/08 3:52 PM 0.00
98129 APPROVED 7/21/08 3:52 PM N/A
98131 INCOMPLETE 7/21/08 2:00 PM 0.00
98131 COMPLETE 7/21/08 2:00 PM 0.43
98131 REVIEW 7/21/08 2:43 PM 0.00 3.52
98131 COMPLETE 7/21/08 2:43 PM 3.02 3.02
98131 REVIEW REVIEW 7/22/08 9:15 AM 0.01
98131 DECISION DEPT HEAD 7/22/08 9:16 AM 0.49
98131 APPROVED 7/22/08 10:05 AM N/A
As examples, what I want to do is for each [App], calculate the [Time] difference between
Ex 1: Calculate for each [App] the time difference between the current record and the next record (for the same [App])
Ex 2: The last “COMPLETE” [Status] and a first “REVIEW” [Status] for each [App]
Ex 3: The first “Review” [Status] and the last “Approved” [Status for each [App]
And store the results in a table
In essence, to be able to select specific status or reason and do the time difference. I think I will need a “next i” to separate the [app] but after that I am lost..
Can someone point me into the right direction?
Much appreciated.
I have a table with: [App], [Status], [Reason], [Time].
There is an unlimited number of App. There are 11 [Status] (duplicate are possible) and a limited number of [Reason] for each of the Status (duplicates are possible).
The Time field is a time stamp of when the Status/Reason fields were captured. The table is sorted by [App] then [Time]
I have the VBA code to calculate the Time Difference so that is not an issue.
App Status Reason Time Ex 1 Ex 2 Ex 3
98128 INCOMPLETE 7/21/08 1:18 PM 0.00
98128 COMPLETE 7/21/08 1:18 PM 0.44
98128 REVIEW 7/21/08 2:02 PM 0.00
98128 COMPLETE 7/21/08 2:02 PM 1.41 1.41
98128 REVIEW 7/21/08 3:43 PM 0.31 1.11
98128 PENDING ASSET 7/21/08 4:14 PM 0.40
98128 APPROVED 7/21/08 4:54 PM N/A
98129 INCOMPLETE 7/21/08 1:25 PM 0.00
98129 COMPLETE 7/21/08 1:25 PM 0.42
98129 REVIEW 7/21/08 2:07 PM 0.00 1.45
98129 COMPLETE 7/21/08 2:07 PM 1.37 1.37
98129 REVIEW 7/21/08 3:44 PM 0.08
98129 RESET TO NOT DONE 7/21/08 3:52 PM 0.00
98129 APPROVED 7/21/08 3:52 PM N/A
98131 INCOMPLETE 7/21/08 2:00 PM 0.00
98131 COMPLETE 7/21/08 2:00 PM 0.43
98131 REVIEW 7/21/08 2:43 PM 0.00 3.52
98131 COMPLETE 7/21/08 2:43 PM 3.02 3.02
98131 REVIEW REVIEW 7/22/08 9:15 AM 0.01
98131 DECISION DEPT HEAD 7/22/08 9:16 AM 0.49
98131 APPROVED 7/22/08 10:05 AM N/A
As examples, what I want to do is for each [App], calculate the [Time] difference between
Ex 1: Calculate for each [App] the time difference between the current record and the next record (for the same [App])
Ex 2: The last “COMPLETE” [Status] and a first “REVIEW” [Status] for each [App]
Ex 3: The first “Review” [Status] and the last “Approved” [Status for each [App]
And store the results in a table
In essence, to be able to select specific status or reason and do the time difference. I think I will need a “next i” to separate the [app] but after that I am lost..
Can someone point me into the right direction?
Much appreciated.