Oyseka Posted June 17, 2011 Posted June 17, 2011 Hi All, I want to perform a find in a table on a key field and if no records are found then create a new record but I can't find an error code to capture for "No records match this find criteria", can anyone tell me what it is please.
Vaughan Posted June 17, 2011 Posted June 17, 2011 I can't find an error code to capture for "No records match this find criteria", can anyone tell me what it is please. Read up on the Set Error Capture script step.
David McQueen Posted June 17, 2011 Posted June 17, 2011 Hi All, I want to perform a find in a table on a key field and if no records are found then create a new record but I can't find an error code to capture for "No records match this find criteria", can anyone tell me what it is please. Pseudo Script Perform Find If Get(FoundCount)<1 show all records New RecordRequest End If If you are trying to create a new record with a specific key field, store it prior to the find and then set field after creating a new record. HTH Dave
Oyseka Posted June 17, 2011 Author Posted June 17, 2011 Read up on the Set Error Capture script step. Hi Vaughan, Yes, I realised that I had to capture the error but in the Filemaker error codes I could not find the code for this specific error the nearest one I could see was code 8, Empty result.
comment Posted June 17, 2011 Posted June 17, 2011 Hint: Set Error Capture [On] Enter Find Mode [] Set Field [Table::Field; "non existing value"] Perform Find [] Show Custom Dialog [Get (LastError)]
Oyseka Posted June 17, 2011 Author Posted June 17, 2011 Hint: Set Error Capture [On] Enter Find Mode [] Set Field [Table::Field; "non existing value"] Perform Find [] Show Custom Dialog [Get (LastError)] Sorry, I couldn't see for looking, I had looked at the list 5 times, 401 it is. Thank you
Recommended Posts
This topic is 4906 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