A script with find that does not stop when it does not find the record
I am setting up a script (for a button) that should take my field content from the first layout and go to a second table and search if it has related records there. If so, it should take another fields content from the second table and paste that in in a field in the first layout. I have gotten this to work as long as the record has a related record in the second table. But as not all records in the first layout has related records in the second table I get trouble when I try to run the script for them to. If I do, a window comes up saying that no records were found and asks if I want to modify the search. How do I turn that off? Meaning if it does not find a related record it should just "do nothing".