Page 68 - AIS access_chang_ingraham
P. 68

66    CHAPTER 4 SALES/COLLECTION BUSINESS PROCESS



                                  21. Click OK and click the Run     icon. (Note: If the Run icon is not visible, click
                            on View> Toolbars > Query Design.)
                                  22. Return to the design view of the SQL Statement:Query Builder. Make another
                            composite field for the customer's name using the same process as in step 20. Put the
                            FirstName field first and the LastName field second with a space in between (" "). Name
                            this field CustomerCompName.
                                  23. Close the Query Builder (by clicking the X in the upper right-hand corner) and
                            save the query. Close the Form Properties window.
                                  24. Delete the LastName and FirstName fields and their labels. Delete the
                            CustomerCity, CustomerState, and CustomerZip fields and their labels.
                                  25. Click on the Field List        -   icon. Scroll down and find the new
                            CustomerCompName field. Click on it and drag it above the CustomerAddress field
                            and drop it. Similarly, add the new CustomerCompAddress field below the
                            CustomerAddress2 field.
                                  26. Delete the labels on the customer name and address fields by clicking on them
                            and hitting the delete key. Be careful not to delete the fields themselves. Adjust the size of
                            the new fields.


                            "31 Sales Form: Form
                            [11 ' , , I  '  •  ,  1  '  ,  ,  I  '  ,  • 2 • • ,  I  •  ,  • 3 • • ,  I  '  ,  • 4 • • • I  '  •  , 5  •  ,  •  I  •  ,  • 6  '  •  ,  I  ';::
                               ~ Form Heoder                                                         I
                                .- .
                             : IfI~iiQ_tre.N!l;::~:: :::;:: InvoiceNo  CustomerCompName
                               .........           ..
                             ~ IIIiliiolte:Oate::: :::::; InvoiceDate  CustomerAddressl
                               .............. ,  .
                             :  CiiSlliriieL'lIE: :::,,; CustomerID
                             -I              .."......           CustomerCompAddress












                            FIGURE 4-15

                            Since the Customer Table is one of the tables that data are read from in this form, we need
                            to ensure that the user cannot write any data to the Customer Table in this particular appli-
                            cation. Therefore, we now want to format the customer fields so that the user cannot
                            change the data that is entered in these fields.
                                  27.  Place   the   cursor   below    the  lower    right-hand   corner   of   the
                            CustomerCompAddress field. Hold down the left mouse button and drag the cursor
                            across all of the customer fields until you are above the upper left-hand comer of the
                            CustomerCompName field.

                                  28. We want the Customer information to automatically appear when the CustomerID
                            is entered. This is called closed-loop verification and it is an internal control. To achieve this,
   63   64   65   66   67   68   69   70   71   72   73