Hi
I have written the following range on RM_OPEN
range clear RM_OPEN;
range table RM_OPEN where physicalname('Document Number' of table RM_OPEN)
+ CH_SPACE + "IN" + "(" + CH_SPACE + "SELECT" + CH_SPACE + physicalname('Apply To Document Number' of table RM_Applied_OPEN)
+ CH_SPACE + "FROM" + CH_SPACE + physicalname(table RM_Applied_OPEN)
+ CH_SPACE + "WHERE" + CH_SPACE + physicalname('Apply From Document Number' of table RM_Applied_OPEN)
+ CH_SPACE + "=" + s_document_number + ")";
warning string(countrecords(table RM_OPEN));
fill window 'Scrolling_Window' table RM_OPEN;
I am trying to achieve this SQL query in dex
select * from RM20101 WHERE DOCNUMBR IN(SELECT APTODCNM FROM RM20201 WHERE APFRDCNM = 'PYMNT000000000080')
this receipt(PYMNT000000000080) has 10 records in rm20201
I am getting following error
"A countrecords operation on table 'RM_OPEN' cannot find the table.
Anyone Suggest whats wrong with this range??
OR
How can i write this in Pass through SQL???
*This post is locked for comments