Sounds like the same problem that was posted once before. If I get it correctly you have one tdsls040 record to be displayed and multiple tdsls045 records. Plus you only want to display those tdsls040 records where it has a tdsls045 record where tdsls045.ssls=1. The program itself already has the current tdsls040 record - reading the table again would probably confuse the session.
Code:
main.table.io:
after.read:
select tdsls045.ssls
from tdsls045
where tdsls045._index1={:tdsls040.orno}
and tdsls045.ssls<>1
as set with 1 rows
selectdo
skip.io("")
endselect
PS - not familiar with these tables or relationships.
__________________
Mark
GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.
Shared Solutions for
Baan systems provided free by
Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click
here to find how.