March 9, 200421 yr I have a FIND script that works, but I just want to be able to bypass FileMakers own dialogue box that shows up when no records are found (No records match this request / Cancel / Continue / Modify Find). I want the script to show my own personal message and options when no records are found. Right now, it's showing both dialogue boxes...first FileMakers, then mine. I'm sure it's simple, but I'm just not seeing it. The script I have right now is as follows... Enter Find Mode[] Set Field ["FollowUpNeeded", ""No""] Omit Record Perform Find [Replace Found Set] Got to Layout ["Conversation Summary"] If ["Status(CurrentFoundCount) = 0] Show Message ["There are NO outstanding "To Do" items!"] Show All Records Open [New Customer Entry.fp5 (*)"] End If Version: v6.x Platform: Mac OS X Panther
March 9, 200421 yr HonkyCat, use Set Error Capture [On] at the beginning of the find. This will suppress FileMaker dialogs. Omit record in the middle of your find? Not sure why but if it works, that's great.
March 9, 200421 yr Author MoonShadow, thank you so much, it worked!! A relief to my mind! By the way, I put the omit record in because I have a check box for people to mark either "yes or no" if someone needs to follow up on a phone call. Sometimes, however, people get busy and forget to mark anything at all. So I had the script find the "no's" and omit them...that way all phone calls marked yes or not marked at all will show up. That way those calls don't get forgotten about. Thanks again!
Create an account or sign in to comment