Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sorting recordsets

Status
Not open for further replies.

stemitch2000

Programmer
Nov 12, 2003
47
GB
I have got the following piece of code below, How do I get the recordset that it produces to sort? I have tried the SQL order by, but it won't have it. Please Please Please help me, this is the last functionality I need to complete a system!!

sSQL = "Select AdsPath FROM 'LDAP://uk-stv-sed1/dc=,dc=' where objectclass='Person' and uid='" & id & "'
Set cnADS = Server.CreateObject("ADODB.Connection")
cnADS.Provider = "ADsDSOObject"
cnADS.Open "ADs Provider", "", ""
Set rsMine = cnADS.Execute(sSQL)
 
The first path of the adspath of a user is the name. Order by name and it works.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top