John Chamberlain Posted May 16, 2005 Posted May 16, 2005 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
MoonShadow Posted May 16, 2005 Posted May 16, 2005 John, add a Set Error Capture [ On ] at the start of each of your subscripts. This will stop FM's message. Then handle it yourself.
T-Square Posted May 17, 2005 Posted May 17, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now