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