I guess my real question is how is data stored in SQL Server... I have a linked table in Access that I'm using ADO Recordsets in VBA to move to the last record. The code works fine, but I'm not getting the "correct" results.
Sample table:
No matter how I "sort" the data in Access through the linked table in SQL Server, sample record #2 is always the last record and I believe it's sorting by the serial# text (since S would be the greatest).
Is there a way I can fix this in SQL Server to sort by the ID instead of the serial number? Using Select MAXID or Dlookup functions will not help me since they cannot accept EOF or BOF arguments.
Any help appreciated.
Thanks in advance.
Sample table:
Code:
ID Serial# Date --- ------- ------- 1 A123 08/21/09 2 S901 08/24/09 3 F789 08/23/09 4 D456 08/22/09
Is there a way I can fix this in SQL Server to sort by the ID instead of the serial number? Using Select MAXID or Dlookup functions will not help me since they cannot accept EOF or BOF arguments.
Any help appreciated.
Thanks in advance.
Comment