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

Retrieve a subset of recordset for further processing

Status
Not open for further replies.

BenjaminLim

IS-IT--Management
May 24, 2000
73
GB
Hi,

I am trying to retrieve a subset of recordset for further processing.

Code Listing
===============

Set rstd1 = db.OpenRecordset("select Date1 from [First Date Set] order by date1", dbOpenSnapshot)

And I tried using the following to extract a subset from rstd1.

Set rstd2 = db.OpenRecordset("select Date1 from rstd1 order by Date1", dbOpenSnapshot)

=> it didn't work & produce error

And I tried :

Set rstd2 = db.OpenRecordset("select Date1 from [First Date Set] order by date1 where Date1 = rstd1!date1", dbOpenSnapshot)

=> again it failed..

Could you advice? Thanks.

Regards
Benjamin
 
From the main recordset I will like to extract a subset of records based on selected date criteria further processing.

Please advice. Thanks.

Benjamin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top