home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / database / 985 < prev    next >
Encoding:
Text File  |  1992-08-14  |  2.0 KB  |  52 lines

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!gatech!ncar!niwot.scd.ucar.edu!charlesa
  3. From: charlesa@niwot.scd.ucar.edu (Charles Albrecht)
  4. Subject: Re: Another FileMaker Pro question
  5. Message-ID: <1992Aug14.145815.6357@ncar.ucar.edu>
  6. Keywords: FMPro, Calc Fields, If(,,)
  7. Sender: news@ncar.ucar.edu (USENET Maintenance)
  8. Organization: Scientific Computing Divison/NCAR Boulder, CO
  9. References: <1992Aug14.090939.14131@nntp.uoregon.edu>
  10. Date: Fri, 14 Aug 1992 14:58:15 GMT
  11. Lines: 39
  12.  
  13. In article <1992Aug14.090939.14131@nntp.uoregon.edu> srussell@cie.uoregon.edu (Steven Russell) writes:
  14. >
  15. >Ok, here's another question:  I want to be able to create a field
  16. >that adds values from two other fields.  If field "A" contains the
  17. >value 20, and field "B" contains 17, I want my proposed field to
  18. >become 37.  So far, this is trivial, but I would like this same field
  19. >to be selectable for manual data entry if both fields "A" and "B" are
  20. >undefined.  If this is not possible, I will settle for having the
  21. >field be selectable for data entry without depending on the values in
  22. >fields "A" and "B".  Is this possible, or am I asking too much?  I've
  23. >looked through the manual for help with this, but haven't found a way
  24. >to make it work.
  25. >
  26. >--
  27. >-Steven Russell
  28. >srussell@uoneuro.uoregon.edu
  29. >
  30.  
  31. How about this:  create a field "C" that has the data you'll put into your
  32. calculation field if "A" and "B" are empty.  Then define your CalcField
  33. with:
  34.  
  35. CalcField = if ((A = "") and (B = ""),C,A+B)
  36.  
  37. I've done something similar in a database here.  I then make C a non-printing
  38. object in the layout definition, so that only the CalcField is printed.
  39.  
  40.  
  41. Charles
  42.  
  43. ----
  44. Charles Albrecht                "Nonsense, they only say you can't survive
  45. charlesa@ncar.ucar.edu           The Fire Swamp because no one ever has."
  46. 303/497-1828                        - Westley, The Dread Pirate Roberts
  47.  
  48. NCAR - Scientific Computing Division * P.O. Box 3000 * Boulder, Colorado  80307
  49.  
  50. The opinions you are about to have read are fictitious...
  51.           ...any similarity to opinions living or dead is purely coincidental.
  52.