November 25, 200916 yr Problem: If you perform a script with a "Perform Find" command and it does not find any records, FileMaker will return the message "No records match this request. (Cancel, Continue, Modify Find)." I would like to customize this. Instead of: "No records match this request. (Cancel, Continue, Modify Find)." Can I have a custom dialog pop up and say "No records match this request" but with only one button that will say "continue". When the continue button is pressed my script will resume which puts me into browse mode. Any thoughts? Thanks for your help. Greg I
November 25, 200916 yr Hi Greg, To stop FMs automatic message when no records found, preceed it with the script step Set Error Capture [ On ]. In this way, you can trap for the error yourself within the script and continue as you wish. UPDATE: An example of the script then: Enter Find Mode [ pause ] Set Error Capture [ On ] Perform Find [ ] If [ not Get ( FoundCount ) ] Show Custom Dialog [ "Continue" ; "No records match this request." End If ... from here do whatever you may wish but after a find has been performed, you are automatically returned to browse mode. So you could go to another layout, the original layout, etc. Just remember that, if you put Error Capture on and no records are found, FM will leave you with a blank found set with no records so you'll need to show all records afterwards. Hi Barbara! I added the script example before I saw your response. :wink2: Edited November 25, 200916 yr by Guest Added example and then note to Barbara
November 25, 200916 yr This thread might help: http://fmforums.com/forum/showtopic.php?tid/209815/fromsearch/1/hl/find/tp/1/
Create an account or sign in to comment