jbullydawg Posted August 16, 2005 Share Posted August 16, 2005 I'm using the following calcualtion to determine the pay for an instructor based on the number of days a student was enrolled in a course before he/she dropped. This works, but what i can't figure it out is how to make it ONLY look for those students who have a date in Date Dropped. the way I have it setup now it looks through all students. If (Date Dropped - Date Enrolled >= 60, 50, 25) I'd love some help. Link to comment Share on other sites More sharing options...
jbullydawg Posted August 16, 2005 Author Share Posted August 16, 2005 Essentially, I want this field to return a null value if the Date Dropped field is empty. Link to comment Share on other sites More sharing options...
comment Posted August 16, 2005 Share Posted August 16, 2005 Try wrapping your calc inside a not IsEmpty ( Date Dropped ) condition, e.g. Case ( not IsEmpty ( Date Dropped ) ; Choose ( Date Dropped - Date Enrolled < 60 ; 50 ; 25 ) ) Link to comment Share on other sites More sharing options...
RalphL Posted August 16, 2005 Share Posted August 16, 2005 That almost looks like the answer I gave on another thread. Link to comment Share on other sites More sharing options...
jbullydawg Posted August 18, 2005 Author Share Posted August 18, 2005 Thanks for everyone's help. here's what I've got from your suggestions. And I should preface this by saying that I am using FileMaker 4. Solution #1 suggestion: Case ( not IsEmpty ( Date Dropped ) ; Choose ( Date Dropped - Date Enrolled < 60 ; 50 ; 25)) Error message: Either an operator was omitted, this function, cannot be found, or "(" was not expected here. (it highlights "Choose") Solution #1 suggestion: If( not IsEmpty(DateDropped); If( DateDropped - DateEnrolled >= 60; 50; 25 )) Error message: This field cannot be found. (it highlights DateDropped...this is exaclty how the field name is spelled) Help!!! : Link to comment Share on other sites More sharing options...
comment Posted August 18, 2005 Share Posted August 18, 2005 Try replacing the semi-colons with commas. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6687 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