I have a .mdb database that contains various records. One of the fields is date, ie '19/10/2008 00:00'.
How do I sort the database by date?
I an a beginner and currently learning with the 'Visual Basic in easy steps' by Tim Anderson. On page 104 he has an example database called 'Members'. To sort by surname he says to do the following:-
RecordSet = 1-Dynaset
RecordSource = Select * from Members Order By LastName
This then sorts the 'Members' database by Surnames.
So I would have thought that if I set my database 'AdHocData' to:
RecordSet = 1-Dynaset
RecordSourse = Select * from AdHocData Order By Date
this would re-arrange the database by date, but it appears to have no effect.
Can anyone please tell me where I am going wrong?
Many thanks.