I create a cursor called 'table1_data' from the statement:
lnResult1 = SQLEXEC(m.hConn, 'select * from table1 where status like ?m.seeStatus','table1_data')
Now I want to access this table in my next SQLEXEC statement:
lnResult2 = SQLEXEC(m.hConn, 'select * from table2 where table2.item_id = table1_data.item_id','table2_data')
however I get the error: The multi-part identifier table1_data.item_id could not be bound. Any help much appreciated!