home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / database / 1823 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.7 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!sgiblab!swrinde!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!spool.mu.edu!uwm.edu!linac!att!bu.edu!dartvax!coos.dartmouth.edu!boz
  2. From: boz@coos.dartmouth.edu (John Boswell)
  3. Newsgroups: comp.sys.mac.databases
  4. Subject: Unique numbers in FMP
  5. Message-ID: <C1J35G.3vI@dartvax.dartmouth.edu>
  6. Date: 27 Jan 93 19:51:15 GMT
  7. Sender: news@dartvax.dartmouth.edu (The News Manager)
  8. Organization: Dartmouth College, Hanover, NH
  9. Lines: 26
  10.  
  11. Hi,
  12.     Could someone please give me some hints on how to do the following?
  13. I have a library database to keep track of my books.  One of the fields
  14. is a category field (science fiction, non fiction, biography, etc.).  One 
  15. field is an auto-serial number (unique), and yet a third field is a calcula-
  16. tion field that contains something like:  Upper(Left(category,3)) &"."& num
  17. (where num is the autoserial field); this results in stuff like:
  18. SCI.588  or BIO.212  etc.
  19.  
  20. My problem is, that I would like any books in a specific category to
  21. go sequentially, i.e., SCI.400, SCI.401, SCI.401, etc.  As I have it
  22. set up, if I enter a SCI book, then a Biography, then a SCI book, I'd get:
  23. SCI.400, SCI.402  (since the biography would get BIO.401).  I can't set
  24. up separate "autoserial" number fields for each category, since they
  25. would ALL increment by 1 as soon as I create a NEW record.  Is there a
  26. way for me to do what I'd like?
  27.  
  28. Thanks much in advance,
  29. -John Boswell
  30.  
  31.  
  32. --
  33. ****************************************************************************
  34. Dr. John Boswell    boz@coos.dartmouth.edu (preferred address)    
  35. Dept. of Medicine/GI MCN C2104    BOSWELJS@ctrvax.vanderbilt.edu (alternate)    
  36. Vanderbilt University, Nashville, TN  37232    615-343-4747
  37.