home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / database / 1697 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!uniwa!uniwa!nfm
  2. From: ainsley@uniwa.uwa.edu.au (Ainsley Calladine)
  3. Newsgroups: comp.sys.mac.databases
  4. Subject: Lots of nested If's in FMP
  5. Date: 12 Jan 1993 16:06:43 +0800
  6. Organization: The University of Western Australia
  7. Lines: 24
  8. Message-ID: <1itu6jINNge6@uniwa.uwa.edu.au>
  9. NNTP-Posting-Host: uniwa.uwa.edu.au
  10. X-Newsreader: Tin 1.1 PL5
  11.  
  12. Hi!
  13. I'm currently setting up a db in FMP2 which is largely to make data
  14. entry by a number of novices straight forward, chances are they won't
  15. understand the data structure at all.
  16. In a number of cases I have fields which have up to 50 pre-defined
  17. values (although most are <20) to choose from. These categories are then
  18. grouped into a smaller number of categories (3-5). What I want is to
  19. have the data entry people only choosing one of the lower categories
  20. (using radio buttons) and the higher one being entered automatically.
  21. I've used a field defined as a calculation with a nested 'If' statement
  22. like this:
  23.  
  24. If (Field 1 = "X" or Field 1 = "Y" or Field 1 = "Z", "It's one of
  25. these", If (Field 1 = "A" or Field 1 = "B" or Field 1 = "C" or Field 1 =
  26. "D", "It's something else", "Or it's nothing"))
  27.  
  28. This works fine but I'm concerned that a nested 'If' testing 50 cases
  29. might be a bit big! Also, am I right in believing that this calculation
  30. definition is stored once and only the result is stored several thousand
  31. times once for each record?
  32.  
  33. Any suggestions will be appreciated
  34.  
  35. Ainsley
  36.