recordset based on another recordset

  • Thread starter Thread starter Newbie
  • Start date Start date
N

Newbie

Hi,

is it possible to create a recordset from another recordset

eg.

rs1 = records with duplicate stockcodes
rs2 = select distinct stockcodes from rs1

I have the following code but both come up with Type Mismatch

"SELECT DISTINCT StockCode FROM '" & rsGRN & "'"
"SELECT DISTINCT StockCode FROM " & rsGRN

What am I doing wrong

Thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

On Change Update Subform 1
recordset = adding fields 15
ADO find method 1
opening recordsets in forms coding 3
Ado add an id variable to a table 1
Append Recordset 2
Recordset Code Help 12
stuck in a loop 5

Back
Top