Use this script step:
Set Error Capture [On]
just before Perform Find [ ]
to suppress the error dialog.
You should now check for errors in your script using get ( LastError ) so your script can respond appropriately to error conditions.
Thanks for your fast response!
Well, there aren't any errors in the script, it correctly tells me there have been no entries today.
If I suppress the alert, how do I still ensure the script runs through the tasks and does not show all the previously entered records? The Find command looks for field <Date> = // *.*.* where the *.*.* is entered by FMP itself. I only entered // in the Find box myself.
Is there a way to say "If result is zero, continue anyway"?
No records found is an error and there's an error code returned to Get ( LastError ) that will tell you that. A different error code tells you when your criteria is invalid and so forth. An error code of 0 means no errors. Thus you can use Get ( LastError ) to check the results of your find. You can look up the codes in FileMaker help.
In addition, with set error capture on, if no records match the criteria, then youCet. a found set of zero records and you can check this with Get ( FoundCount )