Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi i am using VBA to retreve data from a sql 2000 database.
i then load the active worksheet with the recordset. what i need to do is to display sorted data from the active worksheet into another worksheet in the same workbook ie i get dept, employee, salary, sicktime i need to sort by dept,employee and salary with the results displaying on another sheet. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"alvis" wrote ...
i am using VBA to retreve data from a sql 2000 database. i then load the active worksheet with the recordset. what i need to do is to display sorted data from the active worksheet into another worksheet in the same workbook ie i get dept, employee, salary, sicktime i need to sort by dept,employee and salary with the results displaying on another sheet. You could use the recordset's Sort property to change the order of the recordset, issue a MoveFirst and use the same approach to copy the data the second worksheet as you did for the first. Note your recordset will need a client side cursor to be able to sort it. Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can print A Id badge From a Excell Work Sheet | Excel Worksheet Functions | |||
how do i use symbol of degree in excell work sheet using key board | Excel Worksheet Functions | |||
how to delete the little red arrow in excell work sheet block | Excel Worksheet Functions | |||
How do I email one sheet from within an excell work book file | Excel Worksheet Functions | |||
insert query into excell sheet to update excell sheet and pivot table | Excel Discussion (Misc queries) |