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

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!gumby!destroyer!ncar!niwot.scd.ucar.edu!charlesa
  3. From: charlesa@niwot.scd.ucar.edu (Charles Albrecht)
  4. Subject: Re: Calculating "days" in FileMaker Pro
  5. Message-ID: <1992Aug13.220604.19014@ncar.ucar.edu>
  6. Sender: news@ncar.ucar.edu (USENET Maintenance)
  7. Organization: Scientific Computing Divison/NCAR Boulder, CO
  8. References: <1992Aug13.180842.26281@nntp.uoregon.edu>
  9. Date: Thu, 13 Aug 1992 22:06:04 GMT
  10. Lines: 41
  11.  
  12. In article <1992Aug13.180842.26281@nntp.uoregon.edu> srussell@cie.uoregon.edu (Steven Russell) writes:
  13. >I am trying to create a calculated field in FileMaker Pro that will
  14. >return the number of days since a date located in another field.  For
  15. >example, if today is the 13th of August, I want to know how many days
  16. >have passed since (for example) June 27th, 1991.  Is there a simple
  17. >way to do this?  The calculation functions don't seem to lend
  18. >themselves well to this task, but I may not be using them properly. 
  19. >Can anyone help me out with this?
  20. >
  21. >--
  22. >-Steven Russell
  23. >srussell@uoneuro.uoregon.edu
  24.  
  25. The function you've probably written is:  Today - FromDate
  26.                                           ^^^^^ (Today is a FMPro function)
  27. If you define this as a number, FM Pro will beep at you and give you 
  28. a stern warning that the function will return a value of type "date."  If
  29. you indicate that you do want to define it as a number, FileMaker will
  30. gladly allow you to do it, and should give you what you're looking for.
  31.  
  32. A WARNING HERE.  If you have a large database, you will find that the Today
  33. function recalculates each time you restart the database (on a new day).
  34. A few years ago, I thought it would be nice to use the Today function to 
  35. age financial accounts, but the time required to recalculate 2000 records
  36. convinced me not to.
  37.  
  38.  
  39. Good Luck,
  40.  
  41.  
  42. Charles
  43.  
  44. ----
  45. Charles Albrecht                "Nonsense, they only say you can't survive
  46. charlesa@ncar.ucar.edu           The Fire Swamp because no one ever has."
  47. 303/497-1828                        - Westley, The Dread Pirate Roberts
  48.  
  49. NCAR - Scientific Computing Division * P.O. Box 3000 * Boulder, Colorado  80307
  50.  
  51. The opinions you are about to have read are fictitious...
  52.           ...any similarity to opinions living or dead is purely coincidental.
  53.