Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excell work sheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Excell work sheet

"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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can print A Id badge From a Excell Work Sheet sbaby Excel Worksheet Functions 3 December 12th 09 10:32 PM
how do i use symbol of degree in excell work sheet using key board amitwills Excel Worksheet Functions 2 August 5th 08 05:14 AM
how to delete the little red arrow in excell work sheet block earledawg Excel Worksheet Functions 1 May 29th 08 02:09 PM
How do I email one sheet from within an excell work book file Marguerite Excel Worksheet Functions 1 April 29th 08 05:06 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM


All times are GMT +1. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"