J
Jason Lopez
I have a query that I have been asked to create that is very foreign to me
and I would almost think to be impossible. However, I throw this out here
to anyone that might know if it as some of the craziest things have been
shown to be possible. So, without further delay, here's my problem.
I have a query of historical data. The data relates to signatures that are
acquired from a scanner for a project that people are to sign off on. Each
signature is from someone that is in a particular department. So, project 1
could have four signatures associated with it. Project 2 could have 2.
There is no set number per project. However, dates are recorded with each
signature that is scanned. So, a table would look something like this:
Project; Signature; Dept; SigDate
1; John Do; Leg; 1/1/2008
1; Jane Smith; Control; 1/3/2008
2; Jack Frost; Control; 1/3/2008
The Query would sort the dates for each project from oldest to newest. But
then, there would need to be a calculation made with each signature of how
long it was from the previous signature to their own in days. In the case
of the very first person to sign, it would be calculated from when the
project started. So, a resulting query would hopefully look like:
Project; Signature; Dept; SigDate; TimeSign
1; John Do; Leg; 1/1/2008; 3
1; Jane Smith; Control; 1/3/2008; 2
2; Jack Frost; Control; 1/3/2008; 4
However, how would I program the query to look at the previous record to
evaluate if it makes a calculation based on previous signer or when the
project started? And, then, would the output have to be to a new table in
order to produce the graphs and reports from?
I look through this and am not sure if it is possible. Additional
information I have searched for yields nothing beneficial to create this
type of query. Yet, I have not tried all resources as I am hoping that
there might be a solution that someone here knows. So I hope someone can
help me out on this one.
Jason
and I would almost think to be impossible. However, I throw this out here
to anyone that might know if it as some of the craziest things have been
shown to be possible. So, without further delay, here's my problem.
I have a query of historical data. The data relates to signatures that are
acquired from a scanner for a project that people are to sign off on. Each
signature is from someone that is in a particular department. So, project 1
could have four signatures associated with it. Project 2 could have 2.
There is no set number per project. However, dates are recorded with each
signature that is scanned. So, a table would look something like this:
Project; Signature; Dept; SigDate
1; John Do; Leg; 1/1/2008
1; Jane Smith; Control; 1/3/2008
2; Jack Frost; Control; 1/3/2008
The Query would sort the dates for each project from oldest to newest. But
then, there would need to be a calculation made with each signature of how
long it was from the previous signature to their own in days. In the case
of the very first person to sign, it would be calculated from when the
project started. So, a resulting query would hopefully look like:
Project; Signature; Dept; SigDate; TimeSign
1; John Do; Leg; 1/1/2008; 3
1; Jane Smith; Control; 1/3/2008; 2
2; Jack Frost; Control; 1/3/2008; 4
However, how would I program the query to look at the previous record to
evaluate if it makes a calculation based on previous signer or when the
project started? And, then, would the output have to be to a new table in
order to produce the graphs and reports from?
I look through this and am not sure if it is possible. Additional
information I have searched for yields nothing beneficial to create this
type of query. Yet, I have not tried all resources as I am hoping that
there might be a solution that someone here knows. So I hope someone can
help me out on this one.
Jason