Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
My question is this:
I have a VBA script that (among other things) reads information from a table and stores it in an array (the size of the table). What I would like to know is this: Is it possible to sort it (using an SQL statement) by more than one column in the table? Let's say my statement looks like this...
strSQL = "SELECT * FROM testdb_main ORDER BY Name, Date"
Set rstTest = dbsTest.OpenRecordset(strSQL)
If I do this, it will only order it by name, and the dates are all over the place.
If anyone could help me, I would truly appreciate it. Thank you.
0 · ·