There are two options for this as portals don't work from your found set:
1) If you are using FileMaker 11, you may be able to use the same criteria from your find in a portal filter expression to limit the displayed portal records to the same records produced by the find. This only works if the criteria for your find is very similar in format each time.
2) Use a script that captures the Primary keys of the current found set in a list and use the list in the portal's relationship. (Could also use a filter expression, but suspect that the relationship will update faster here.)
Here's how the script might capture the primary key values:
Go to Layout [//go to layout based on same table occurrence, but only place the primary key field in this layout]
Copy All Records //copies primary keys to clip board
Go To Layout [//Go to a layout where you've placed the global field: gPrimaryKeys]
Paste [select ; YourTable::gPrimaryKeys]
Go To Layout [original Layout]
Now, if you use this relationship for your portal:
YourTable::gPrimaryKeys = YourTable2::PrimaryKeyField
Your portal will display the same records as are currently present in your found set.
Thank you! Yes I'm using 11. I will try this and see how it goes, thanks again!!!
PhilModJunk it worked! T H A N K Y O U!!