Databases are not speadsheets!!!
The concept of first and last record only applies in a sorted Query or
Recordset. There is no guarantee that a Query or Recordset will remain
in any particular order between invocations unless it is sorted, in
which case "first" and last will be defined according to that sort
order. If you are using such a Query or Recordset, sorted by the
contents of Field A (using your nomenclature) the first record will
be that with the lowest value for A and the last record will be that
with the highest value for A. The values returned for field B in those
records will be those associated with the lowest and highest values
for A in the original dataset. Similarly, but in reverse, if you sort
by the contents of field B, your first and last records will be as
determined by the contents of field B.
So if I want A1 and B1 and say A100 and B100, how would I get that? I think
I can get A1 and A100, but how do I get the B1 and B100? Does this make
sense?
Please respond to the Newsgroup, so that others may benefit from the exchange.
Peter R. Fletcher