phtmb Posted February 19, 2002 Posted February 19, 2002 Novice needing help with what I believe should be a case function. Six fields: Photog One, Photog Two, Photog Three, Unit One, Unit Two, Unit Three. If I have a name in Photog One and a name in Photog Two, Unit One should read "A/B" and Unit Two Should Read "B/B". If I have a name in Photog One, Two and Three, Units should read "A/C", "B/C", "C/C". If I only have one photog on the job, Unit one should read "A/A". I've tried working with (not Is Empty) calc but can't make it work. Any suggestions greatly appreciated.
Chuck Posted February 19, 2002 Posted February 19, 2002 If I understand you correctly, these should work: Unit One = Case(
Fitch Posted February 19, 2002 Posted February 19, 2002 Here's a cute way to do it -- define another field, PhotogCount: Count(Photog One, Photog Two, Photog Three) - 1 Note: the "-1" above is so that we can use the Choose() function below, which looks for 0 as the first result... Unit One = Case(not IsEmpty(Photo One), "A/" & Choose(PhotogCount, "A", "B", "C")) Unit Two = Case(not IsEmpty(Photo Two), "B/" & Choose(PhotogCount, "A", "B", "C")) Unit Two = Case(not IsEmpty(Photo Three), "C/" & Choose(PhotogCount, "A", "B", "C")) [ February 18, 2002, 05:36 PM: Message edited by: Fitch ]
phtmb Posted February 19, 2002 Author Posted February 19, 2002 Thank you both for great solutions! FileMaker not only is a great program but it attracts the best, most helpful group of people. This formum is a godsend for the learners among us!
Recommended Posts
This topic is 8384 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