One of the problems is that data reccords are typically not stored sequentally within a database and tend to move arround as they get edited; so one that's first today may be last tomorrow. We'll need to know the sorting fields to help you build a query that looks for the "first" reccord...
MS-Access Example:
Field1 |
DateField |
A |
9/17/2015 |
A |
9/18/2015 |
B |
9/18/2015 |
C |
9/18/2015 |
D |
9/16/2015 |
D |
9/17/2015 |
D |
9/18/2015 |
E |
9/18/2015 |
F |
9/17/2015 |
F |
9/18/2015 |
Note: Swap out e for é, in the following code
Gives:
Field1 |
DateField |
CT |
MinD |
TST |
A |
9/17/2015 |
2 |
9/17/2015 |
1 |
A |
9/18/2015 |
2 |
9/17/2015 |
0 |
B |
9/18/2015 |
1 |
9/18/2015 |
1 |
C |
9/18/2015 |
1 |
9/18/2015 |
1 |
D |
9/16/2015 |
3 |
9/16/2015 |
1 |
D |
9/17/2015 |
3 |
9/16/2015 |
0 |
D |
9/18/2015 |
3 |
9/16/2015 |
0 |
E |
9/18/2015 |
1 |
9/18/2015 |
1 |
F |
9/17/2015 |
2 |
9/17/2015 |
1 |
F |
9/18/2015 |
2 |
9/17/2015 |
0 |
Bookmarks