You have to refer to a layout that refers to the right table, that's the only way to establish a "table context", but you don't have to make this visible to the user.
Go to layout [//specify the layout for the find]
enter find mode
#use set field steps to enter find criteria
set error capture [on] //suppresses the "no records dialog" if none are found
If [ get ( FoundCount ) > 0 /* records were found */]
#Do what you want with the found records
Go To Layout [original layout]
Thanks for fast response and there were a couple of lines in your example that have helped but the layout I want to perform the find on is still visible on screen. I am now getting the 'script paused' buttons in the top right hand corner of the layout toolbar. When I click 'continue' it performs the rest of the script as I would have expected it to.
I have debugged the script and can absolutely say that the 'Freeze Window' is where you suggest. I am running Filemaker on Windows XP.
Any more suggestions?
S'Okay I have fixed it. My [Enter Find Mode] parameter was set to Pause and the Window Freeze now works. It just took me a while to find out how to switch it off!