May 20, 201015 yr 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
May 20, 201015 yr 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
Create an account or sign in to comment