hi.
tried to figure this out on my own (using the DCount function), but sadly in vain.
say i have a table with two fields, Prop and DateInsp (property and date when it was inspected). i'd like to write a query that will produce the following output -
Prop DateInsp Cntr
Prop1 3/24/11 1
Prop1 1/16/10 2
Prop1 2/21/09 3
Prop2 4/13/11 1
Prop2 6/20/10 2
Prop3 3/30/11 1
...
basically, it's the table sorted by Prop ascending and DateInsp descending, and then the most recent inspection for each property is marked with 1, second recent marked with 2, etc.
thanks in advance,
len
tried to figure this out on my own (using the DCount function), but sadly in vain.
say i have a table with two fields, Prop and DateInsp (property and date when it was inspected). i'd like to write a query that will produce the following output -
Prop DateInsp Cntr
Prop1 3/24/11 1
Prop1 1/16/10 2
Prop1 2/21/09 3
Prop2 4/13/11 1
Prop2 6/20/10 2
Prop3 3/30/11 1
...
basically, it's the table sorted by Prop ascending and DateInsp descending, and then the most recent inspection for each property is marked with 1, second recent marked with 2, etc.
thanks in advance,
len