+ Reply to Thread
Results 1 to 3 of 3

Excel in Access (Part 2)

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Newbury UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Excel in Access (Part 2)

    Excel in Access (Part 1)
    Excel in Access (Part 3)

    Video Version HERE:

    How to use the Normalization Form

    In Excel in Access (Part 1), we went from this:

    \1

    To this:

    \1

    This was achieved with a form based tool available to DOWNLOAD here.

    See instructions on its use here:

    However you may be looking at the new resultant table and wondering what on earth to do with it. I hope to take you through the process of making it into something useful in this thread.

    The first thing you will notice is that where the check box is not checked, then that whole row is redundant, for instance there’s no need to record that ID number “1” --- “Has Not” taken Maths, English, Geography, Physics etc, it would suffice just to record the subjects that have been taken , In this case Biology, PT and Social. Looking at those entries in particular, then a general rule of logic can be defined, “delete all the rows where the check boxes are false”.


    Once you have deleted all of those rows,


    then it becomes obvious that the check boxes themselves which now “All” contain a true value are also redundant, they can be deleted just leaving you the text entry identifying the subject taken by each student.


    Using the “relational” properties of the database that is one more thing you can do which will improve efficiency and that is to replace each text entry --- Maths, English, Geography, Physics etc, with a number linking that field to a look up table.

    First of all you need to create a look up table; this can be done by applying a create table query to extract just the unique values for the “subject” There is a video showing how to do this here: (At time index 1min)


    This unique list should be called “tblSubject” this table is not quite finished, you need to add an identity column to the left of the text representing the individual subject, this identity will then appear in the previous table.


    Once you have completed the “look up table” you then need to replace the entries in the student subject table “tblStudentSubject” where it shows subject in text form with the number representing the link to the look up table. This is the query:


    And here is the new column created:


    This way your design changes to the table are making it much more efficient, holding the same information but with less data.

    Last edited by TonyHine; 10-04-2009 at 02:33 PM.

  2. #2
    Registered User
    Join Date
    09-22-2009
    Location
    Newbury UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Continue............................. (1)

    Next use the form wizard to create a simple form based on the student subject table “tblStudentSubject” the form should show two text boxes one for each of the columns in the table.

    Open the form in design view and change the subject text box to a combo box:


    This form is going to be displayed as a sub form on your main form in datasheet view so you need to go into the form properties and set its default view to “datasheet view”


    While in design view select the combo box and access the combo box properties press the Ellipsis (…) in the “row source” property box to access the query builder.


    In the query builder select the table “tblSubject”


    Then drag both fields into the query builder grid


    Click on yes to save these options


    Set the combo box limit to list property to “Yes”


    Still in the combo box properties, set the column count to “2”


    and the column widths as shown.


    Change the name of the combo box as shown or to your own particular naming convention.


  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Newbury UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Continue............................. (2)

    Now close the form and reopen it; it should display in “datasheet view” and the numbers should be replaced by the text entries provided by the look up table.



    In the original table; you can see it contains the now redundant check box fields


    Open the table in design view and remove these redundant check box fields


    The original form should now looks something like this:


    Excel in Access (Part 3)
    Last edited by TonyHine; 10-05-2009 at 11:15 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1