Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4906 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

Hint:

Set Error Capture [On]

Enter Find Mode []

Set Field [Table::Field; "non existing value"]

Perform Find []

Show Custom Dialog [Get (LastError)]

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.