I have a set of data I want to compare possible changes but am having a hard time writing the query criteria to do what I want.
I tried writing a query of all max date then create another query with all data but removed all the max dates in the 1st query. Then max the remaing entry. But it's not doing what I need it to do.
For example:
Acc # Date entered Color
123 1/1/2008 yellow
123 1/2/2008 blue
123 1/3/2008 blue
123 6/2/2007 green
For each record, I want to see every time it has a colored change based on a comparison of the date entered with the previous of that date entered.
I want to compare the new changes to the previous changes for the month. So for example, line 123 - 1/1/2008 - yellow, i want to select line 123 - 1/2/2008 - blue. For line 123 - 1/2/2008 - blue compare it with line 123 - 1/3/2008 - blue and for line 123 - 1/3/2008 - blue compare it with line 123 6/2/2007 green. How do I I write so that it autoselect the previous entry of the the date entered?
Thanks.
I tried writing a query of all max date then create another query with all data but removed all the max dates in the 1st query. Then max the remaing entry. But it's not doing what I need it to do.
For example:
Acc # Date entered Color
123 1/1/2008 yellow
123 1/2/2008 blue
123 1/3/2008 blue
123 6/2/2007 green
For each record, I want to see every time it has a colored change based on a comparison of the date entered with the previous of that date entered.
I want to compare the new changes to the previous changes for the month. So for example, line 123 - 1/1/2008 - yellow, i want to select line 123 - 1/2/2008 - blue. For line 123 - 1/2/2008 - blue compare it with line 123 - 1/3/2008 - blue and for line 123 - 1/3/2008 - blue compare it with line 123 6/2/2007 green. How do I I write so that it autoselect the previous entry of the the date entered?
Thanks.
Last edited: