jt463
IS-IT--Management
- Nov 23, 2005
- 134
I have gone to great pains to use VBA to create a table - which comes out with exactly the information I need. Now, I want to use VBA to sort the table on two columns that are in the middle of the record.
So, say I have a table (tbl1) with the following columns:
1. Customer
2. Address
3. City
4. State
5. Zip
I want to use VBA to sort the table on Address and then State. I saw there is an option for me to code something like this (where rst is tbl1):
But it didn't give me any additional options where I could tell it what fields to sort on.
Any help would be greatly appreciated.
So, say I have a table (tbl1) with the following columns:
1. Customer
2. Address
3. City
4. State
5. Zip
I want to use VBA to sort the table on Address and then State. I saw there is an option for me to code something like this (where rst is tbl1):
Code:
rst.Sort
But it didn't give me any additional options where I could tell it what fields to sort on.
Any help would be greatly appreciated.