Line 5 can be removed from your script as it does nothing unless you left out a parameter.
You can use get ( LastError ) to check the results of your quick find. You can look up error codes in FileMaker help to determine what each error code means.
And this does not happen:
1. When my search result is successful, it includes the record that is currently visible, regardless that that record does not contain the search sting in any of its fields.
Only records that match your search criteria will be included in your found set.
Agreeing this, rickmerl you need to check the SH_SearchAllRecords field is really set as global.
If not, the field itself can be searched.
If it is global, you don't need variable.
Perform Quick Find [ SH_SearchAllRecords ]
You were correct in your assumption that "SH_SearchAllRecords" was not set as global as I intended.
i corrected this and the current record is now not automatically included.
Thanks for your reply Philmodjunk
I'd like to generate a "not found" message that is more user friendly than a filemakes error code.
(The purpose of the "PW Assets" DB, is to build my skills and not a real life Developement.
Hence, I'm shoveling in many ideas as to what I would expect as "user friendly" and for me, think this a good way to build my skills.)
1 of 1 people found this helpful
Use get ( lasterror) to detect the records not found in an if step. You can then use show custom dialog to show any error message you want.
Hey thanks philmodjunk
Opens the door to applying to many situations.