TheFonze73 Posted May 20, 2010 Posted May 20, 2010 Hi All, I would like to perform a find in a script then have the script go to a certain layout if any records are found or to a different layout if there are no records found. How do I set this variable? Thanks to All
Ron Cates Posted May 20, 2010 Posted May 20, 2010 You can use the error capture function to determine if there were no records found. Error 401 means there were no records found. Set Error Capture [ On ] Enter Find Mode [ ] Set Field [ ] Perform Find [ ] If [ Get ( LastError ) = 401 ] Go to Layout [ Layout1 ] Else Go to Layout [ Layout2 ] End If
TheFonze73 Posted May 20, 2010 Author Posted May 20, 2010 Thanks Ron for your quick reply. I'll give it a go.
Recommended Posts
This topic is 5302 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