Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default ADO left join count matches

Hello,

I'm using

Sql = "SELECT * FROM " & rs1 & " AS T1 LEFT JOIN (SELECT DISTINCTROW * FROM " & rs2 & ") AS T2 ON T1." & CommomVar & "=T2." & CommomVar
objRecordset.Open Sql, ObjConnection, adOpenForwardOnly

to match between 2 recordsets and it works well

How can I get the number of matches a record from T1 that has a counterpart in T2?

Thanks
Avi
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
SQL statement for left outer join for ranges in the same file [email protected] Excel Programming 0 October 12th 07 12:41 AM
Subquery after Left Join Pontificateur Excel Programming 1 January 19th 06 02:51 PM
LEFT JOIN sql query Michael Malinsky[_2_] Excel Programming 2 August 28th 05 08:09 PM
COUNT INFORMATION IN COLUMN B ONLY IF A1 MATCHES K1 COUNT THAT CE. witchcat98 Excel Worksheet Functions 1 February 4th 05 01:38 PM
ADO Recordset Problem -- Left Join ExcelMan Excel Programming 5 January 24th 05 08:53 AM


All times are GMT +1. The time now is 09:17 AM.

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

About Us

"It's about Microsoft Excel"