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

  1. Path: sparky!uunet!srvr1.engin.umich.edu!saimiri.primate.wisc.edu!ames!agate!netsys!news.cerf.net!network.ucsd.edu!deadmin.ucsd.edu!mokajava.ucsd.edu!user
  2. From: ratcliff@ucsd.edu (John Ratcliff)
  3. Newsgroups: comp.sys.mac.databases
  4. Subject: FM Pro Help
  5. Message-ID: <ratcliff-210193143155@mokajava.ucsd.edu>
  6. Date: 21 Jan 93 22:58:31 GMT
  7. Sender: news@deadmin.ucsd.edu
  8. Followup-To: comp.sys.mac.databases
  9. Organization: ucsd
  10. Lines: 33
  11.  
  12. I am trying to summarize info in an Invoice/Purchase order type
  13. format. Repeating fields are nice but seem very limited.
  14. Maybe I am asking too much of a non relational DB.
  15.  
  16. Does anybody have any recommendations for summarizing items
  17. on an Invoice. That is , how do you find all items of a certain
  18. type code in one repeating field and total the dollar amounts
  19. from another repeating field.
  20.  
  21. To try and make it clearer suppose each record looks like this:
  22.  
  23. Item      Description                 Type Code     Amount
  24.  1        Acme Road Runner Trap       AB123         $55.00
  25.  2        10 D Nails                  AB121         $ 1.01
  26.  3        2 by 4 10 ft                AX432         $ 4.89
  27.  4        Chicken Wire                AB123         $ 2.05
  28.  
  29. How do I get a dollar total across multiple records of this
  30. type with possibly Multiple Type Codes in one record.
  31. Sub Summaries only pick up the first occurence in repeating fields.
  32. Unfortunately the number of possible type codes is large and it
  33. would be difficult to predict which ones will be entered.
  34. So some sort of dynamic Type Code summarizing is needed.
  35.  
  36. ie:    Type Code     Grand Total 
  37.         AB121          $45.56
  38.         AB123          $34.45
  39.         AB234          $ 3.98
  40.         AX432          $ 5.50
  41.  
  42. Thanks for any help.
  43. John Ratcliffe  UCSD
  44. ratcliff@ucsd.edu
  45.