Page 39 - Computing Book 8
P. 39

Handling Databases                                                                   Class 8


               Importing Data in MS Access:

                    •  Go to External Data Tab and click on the Excel icon.
                    •  After clicking the Excel icon, a wizard will open which will guide
                       us step by step import process relative to our preference.
                    •  In the wizard window, the first option is to browse to select
                       the file which we want to import. Click on the Browse button and select the Excel file.
                    •  The excel file we have selected is Sample.xlsx from the Resources folder. In this excel file,
                       most of the fields are related to our database table tblEmployee thus these fields will fit
                       appropriately and the fields which do not contain data will be left blank in our database
                       table.
                    •  After selecting the file there will be three more options available to import the data.
                           1.  Import the source data into a new table in the current database.
                           2.  Append a copy of the records to the table (select the table of our database from the
                              dropdown).
                           3.  Link to the data source by creating a linked table.
                    •  Select the option as per your preference and click Next. In this example, we have selected
                       the 2  option to append our existing employee table.
                            nd
                    •  In the next window, the wizard will ask you to import which excel sheet in our database
                       table. Select the relevant excel sheet and click next.
                    •  In this window, Access will show
                       you the preview of the data that
                       how it will be sorted and if the
                       data is segregated as per our
                       requirement click next.
                    •  In this window, Access will reconfirm the name of our
                       database one last time before proceeding.
                    •  After successfully importing data in our database table Access will show the confirmation
                       message.
















               Open the tblEmployee and check the data imported appropriately, and the fields or data which
               doesn’t contain data in Excel sheet are left empty.














               The City School /Academics/Computing Curriculum/Class 8/2020-2021                Page 38 of 75
   34   35   36   37   38   39   40   41   42   43   44