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

querying a recordset

Status
Not open for further replies.

GerryGoldberg

Technical User
Apr 12, 2001
55
I would like to select some records like:

set rst1 = dbs.openRecordset("SELECT * FROM tableA WHERE state = 'OH')

Then, based on the resulting recordset, I would like to do an additional query, like:

set rst2 = "COUNT (*) FROM (the recordset rst1) WHERE City='CLEVELAND'"

How can I reference rst1 in my second query?

Thanks,

Gerry Goldberg
 
Why don't you just make your querry on the city? (with some Inner Joints)
then, x = rst1.RecordCount ''Life is like a box of chocolate...''
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top