Page 96 - AIS access_chang_ingraham
P. 96

94   CHAPTER 5 ACQUISITION/PAYMENT BUSINESS PROCESS



                       The Relationships: Making the
                       Necessary Linkages

                             1. Examine Figure 5-1 carefully. Now that we have created the Primary Key for the
                       Purchase Order Table, we need to create the necessary relationships. Click on the
                       Relationships     icon to open the window. Notice that we need to add the Purchase
                       Order Table and the PO Inventory Table. Click on the Show Table       :: icon.
                             2. Click on the PO Inventory Table, hold down the Ctrl key, and click on the
                       Purchase Order Table. Click on the Add key and click Close.




                        Show Table                                                I,-?J~


                          Tables IQueries II Both I                                  \
                                                                             [~   Add     l

                                                                                       \
                                                                             [   Close    )
                            Cash Disbursement Receiving Table         A                  ,
                           Cash Disbursement Table                   .......
                            Cash Receipt Sale Table
                            Cash Receipt Table
                            Cash Table
                           Customer Table                             -
                           Extras Table
                           Inventory Table
                           .~.9.)~y'.~.~~gry..T~.~.I.~...,..............................................................
                           !.e.yr~b.9.?~...Q.rg.~r..T.9.J?.!.~...........................................................1
                           Receiving Inventory Table                 -
                           Receiving Report Table
                           Sales Inventory Table                     EJ



                       FIGURE 5-10



                             3. Make the necessary linkages by dragging the primary keys to their foreign keys
                       in the appropriate tables. Recall that when you do this, the Edit Relationships window
                       appears. Click on the Enforce Referential Integrity button.

                             4. Create the other two necessary relationships.
                             5. Close the Relationships window and save the changes.


                       The Purchase Order Form

                       Now that the Relationships have been created, we are ready to begin creating the Purchase
                       Order Form. As we found with the Sales Form, this form will require the use of several
                       tables. We will need to be able to read from the Supplier Table to obtain supplier
   91   92   93   94   95   96   97   98   99   100   101