LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default ADO sorting issue (repost)

Hello,

I'm using the following SQL statement to join 2 tables based on a common key

Sql = "SELECT * FROM " & rs1 & " AS T1 LEFT JOIN (SELECT DISTINCTROW * FROM " & rs2 & ") AS T2 ON T1." & CommomVar(1) & "=T2." & CommomVar(1)

It works fine but there are instances where the result is sorted by the common key rather than the original order in T1. Actually , I don't look for any sorting

I'm not able to figure out the logic as sometimes it work fine (no sorting)

Any idea?

Thanks
Avi
 
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
Sorting issue [email protected] Excel Programming 1 June 17th 08 09:58 AM
Sorting issue Dr. Schwartz[_2_] Excel Discussion (Misc queries) 2 January 29th 08 03:39 PM
Sorting Issue. Please help V-ger Excel Discussion (Misc queries) 17 November 15th 05 12:27 AM
sorting issue steve Excel Discussion (Misc queries) 4 June 22nd 05 06:28 PM
sorting issue - help gennario Excel Discussion (Misc queries) 0 February 28th 05 05:27 PM


All times are GMT +1. The time now is 11:42 PM.

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"