Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I have a script that calls a subscript, the subscript calls the next subscript, etc. There are 7 searches, with corresponding print commands when records are found. The scripts are searching 7 date fields to see if they contain any dates within a range determined by Status (CurrentDate) - the date in the field (a positive result selects the record for printing). Naturally, some of these searches do not yield any results.

What I want is a way to have the "No Records Found" alert turned off, so that I don't have to hit the "Cancel" and "Continue" buttons for those searches that do not return any records. Is this possible?

TIA

John Chamberlain confused.gif

Posted

John--

To extend MoonShadow's post, you would check for no records found using

If[Get(LastError) = 401 /* this is the 'No records found' error */]

#do some stuff

Else

#do some other stuff

End If

This topic is 7130 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
×
×
  • Create New...

Important Information

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