home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / 8005 < prev    next >
Encoding:
Text File  |  1992-11-21  |  2.0 KB  |  42 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!dcatlas!joet
  3. From: joet@dcatlas.dot.gov (Joe Trott)
  4. Subject: Re: MANY-TO-MANY mess in Paradox!!!
  5. Message-ID: <1992Nov20.213045.25307@dcatlas.dot.gov>
  6. Organization: U.S Dept. of Transportation
  7. References: <Bxzoqw.6xo@ccu.umanitoba.ca>
  8. Date: Fri, 20 Nov 1992 21:30:45 GMT
  9. Lines: 31
  10.  
  11. ummalik@ccu.umanitoba.ca (Ijaz Rashid Malik) writes:
  12.  
  13. [stuff deleted]
  14. >say, from an input screen I am entering info about new products or new
  15. >suppliers. If its products, it can have a variable number of vendors and
  16. >if it is a vendor, there could be a variable # of products for it. How can
  17. >I design an input screen/form that has linked tables on it and handeles
  18. >multiple entries for a given field. I mean I can use Products as master
  19. >form and use vendors as linked embeded form. Now when ever I enter a new
  20. >product, I am not sure how many vendors for this product there will be.
  21. >Could be 0,1, or 10000!!! How can I design an input screen and then table
  22. >which would handle this situation????
  23.  
  24. You might use three tables; 1) Product Master, 2) Vendor Master, and 3) Links.
  25. Reports and forms would use the third table as the Master table.  It would
  26. have only two fields, like Product Number and Vendor Number, which would be
  27. primary keys in their respective tables.  You would have to enter all the
  28. products and all the vendors before linking them.  In the LINKS table, you
  29. would use TableLookups to make sure the Product and Vendor numbers were
  30. valid; depending on how comfortable you are with PAL, you could have the
  31. system accept new products and/or vendors if a particular code were entered.
  32. You could also use the Product and Vendor tables to create input forms, if you
  33. use a different imbedded form from LINKS for each one.  Reports though, would
  34. almost certainly be driven from LINKS, which could pull data from either
  35. Master table.
  36.  
  37. I'm sure that was as clear as mud, so if you're left with more questions, I'll
  38. try to do a better job of answering.
  39.  
  40. -JTT
  41.  
  42.