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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost in SQL and Recordset

Status
Not open for further replies.

bells

MIS
Oct 5, 2001
51
CA
event though there are some thread which is talking about
combining a recordset i cound not find anything about a problem I have.

well i have one table from this table I would like to extract
some grouped by fields and a single field from the same table.
say

strSQL = "Select City , sum(q1) from table1 group by City"

Rs.Open, strSQL, myConnection, adOpenKeyset, adLockOptimistic

Now i also want a field called facilityName from the same table.
which i need to list and place it in the same recordset.

I was thingking of creating two recordsets and combine them
into a 3rd recordset that did not work out.
any Idea or suggestions is appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top