Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Is there a way to do a calculation that says

If X is BLANK (where blank is an empty field) then so and so...

Looking for the Syntax of BLANK (empty field).

Thank you!

Moosh

Posted

IsEmpty ( theField )

... used thus:

If ( IsEmpty ( theField ) ; then so and so )

... or within Case() or as boolean (and more). Reverse would be If ( not IsEmpty ( theField ) ...

If we can help with the full calc, let us know.

LaRetta :wink2:

  • Newbies
Posted

Hi -

I am very new to databases, FMP, this forum... I am a volunteer trying to build a viable solution - utilizing starter solutions - for a bookstore at our church. I have been reading through these forum posts and find them to be very helpful -- thanks to you all for taking the time to share your expertise and help those of us who are new.

LaRetta, I especially appreciate your input. Clear, concise, thorough, encouraging, very very helpful.

SharonK

Posted

LaRetta,

The calc you listed above seems like something I was looking for. I am trying to show all records and if a particular field is empty I want to automatically delete that record. Would the calculation you listed above work for me? If so, how would I finish it? I've tried a few different ways with no results.

(Ditto what SharonK said)

Thanks,

Kevin

Posted

Hi Kevin,

If used within a Find, try this script:

Allow User Abort [ Off ]

Set Error Capture [ On ]

Perform Find [ Restore ]

On Perform Find, specify a new Find Request as:

1) Select the field to omit with blank value

2) Type = into the criteria and add it

3) Action popup above should be set to Omit Records

LaRetta :wink2:

Posted

My apologies - I didn't read the delete part. Change that to:

Allow User Abort [ Off ]

Set Error Capture [ On ]

Perform Find [ Restore ]

If [ not Get ( FoundCount ) ]

Show Custom Dialog [ "No records to delete" ]

Show All Records

Halt Script

End If

Delete All Records [ ]

On Perform Find, specify a new Find Request as:

1) Select the field to find with blank value

2) Type = into the criteria and add it

3) Action popup above should be set to FIND Records

You say you want to automatically delete the record. That's okay - just click 'Perform Without Dialog' checkbox on the delete script-step.

Posted

Thanks LaRetta,

My boss just walked in and dumped a ton of other work on me. I will have to try your suggestion next week. I appreciate the response.

Have a great weekend.

Kevin

  • 2 weeks later...

This topic is 6765 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.