I will use the following example as a question:
This is a recordset
set rs=cn.execute("SELECT * from TABLE_1"
Now I want to select records from another table but where the ID matches.
set rs2=cn.exuecute("SELECT * from TABLE_2 where ID=" HERE IS WHERE I AM STUCK!
I don't want to say , (Where ID IN (SELECT ....), because I don't want to repeat the previous select statement. Instead I want to use the IDs stored in the first recordset!
Note: I want to select all the IDs , Not just one ID
Can someone tell me how to do that?
Thank you . .
This is a recordset
set rs=cn.execute("SELECT * from TABLE_1"
Now I want to select records from another table but where the ID matches.
set rs2=cn.exuecute("SELECT * from TABLE_2 where ID=" HERE IS WHERE I AM STUCK!
I don't want to say , (Where ID IN (SELECT ....), because I don't want to repeat the previous select statement. Instead I want to use the IDs stored in the first recordset!
Note: I want to select all the IDs , Not just one ID
Can someone tell me how to do that?
Thank you . .