Jump to content

Avoid "No Records Match ..." diaglog box


This topic is 5681 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm scripting a find using Perform Find. If no records are found, I get the following dialog box:

"No records match this set of find requests" followed by Cancel, Continue, and Modify Find buttons.

I would like to have a custom dialog box appear which says, "No records found", and the script then stops. I don't like the standard dialog box above, primarily because if the user selects cancel, the script stops at a bad step in my particular script, and if they select continue they end up in the wrong layout.

I have tried:

Perform find

If (Get (found count) = 0)

Show custom dialog ["No records found"]

Halt script

End if

But I still get the above dialog box if the Perform find comes up with an empty set.

Any suggestions would be greatly appreciated. Thanks.

Link to comment
Share on other sites

This topic is 5681 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.