Pavel Smirnov Posted May 22, 2011 Posted May 22, 2011 Field1(global field); // for searching LIST VIEW Script on field1 modify: show all records; perform quick find[field1] go to field1; How I can solve problem when there are no find records matching field1 criteria. How turn off the error window or do nothing when there are no matching records.
bcooney Posted May 22, 2011 Posted May 22, 2011 You do not need to Show All (Find always addresses all records in the table). Use Set Error Capture ON right before the FIND to suppress the No Records Found. However, in your script, you might wish to add: If (Get (FoundCount)=0) Show Dialog "No Records Match..." Show all Records End If Somewhere on this forum is a Find script that I use, so maybe search for Find and my name.
Pavel Smirnov Posted May 22, 2011 Author Posted May 22, 2011 You do not need to Show All (Find always addresses all records in the table). Use Set Error Capture ON right before the FIND to suppress the No Records Found. However, in your script, you might wish to add: If (Get (FoundCount)=0) Show Dialog "No Records Match..." Show all Records End If Somewhere on this forum is a Find script that I use, so maybe search for Find and my name. But I do not want show records in list view if FoundCount=0, how I can Hide all Records?
Recommended Posts
This topic is 4933 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