Moosh Posted July 6, 2006 Posted July 6, 2006 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
LaRetta Posted July 6, 2006 Posted July 6, 2006 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 SharonK Posted July 6, 2006 Newbies Posted July 6, 2006 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
KevinRan Posted July 6, 2006 Posted July 6, 2006 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
LaRetta Posted July 6, 2006 Posted July 6, 2006 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:
LaRetta Posted July 6, 2006 Posted July 6, 2006 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.
KevinRan Posted July 6, 2006 Posted July 6, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now