Jan's Illustrated Computer Literacy 101 Logo:Jegsworks Jan's Illustrated Computer Literacy 101


Home > Jan's CompLit 101 > Working with Databases > Intro > Ex. Access 1-1
Icon: Arrow - Previous pagePrevious    NextIcon: Arrow - Next page

Jan's Working with Databases

   Intro: Exercise Access 1-1

You need to use what you just learned, and maybe learn a little more. Complete all parts of the following exercises. Don't forget to backup your Class disk when you have completed the exercises or whenever you stop for the day and saved a document along the way.

This exercise uses a file from the databases resource files. The default location for such files is c:\My Documents\complit101\databases\ You cannot make changes to these files and save them in the same place. Save the changed documents to your Class disk. This keeps the original resource files intact in case you need to start over or another student will be using this same computer.


Exercise Access 1-1: Text Database


What you will do: Find fields and records in a text database.
Turn word wrapping on and off.
Sort records manually.
Edit fields.

Start with: Icon: Class disk,  starwars.txt from resource files

You will appreciate advanced databases more if you have tried to work with a basic plain text database. So awkward, even for a small database.

  1. Notepad: text file (Windows 10)Open text file: Right click on the link starwars.txt

  2. From the context menu,
    select Save link as... or Save target as..., whatever your browser uses.

    The Save As dialog appears

    If the download dialog appears with the choice Open, you may choose Open. The file will open in Notepad or in whatever text editor your computer has associated with text files.

    Icon: WarningWarning: If you clicked the link or chose Open in the context menu instead of a Save As command, the file will appear in the browser! You cannot edit it there, so you will need to use the Back button to return to this page.

    Icon: TroubleProblem: File opened in the browser: You clicked the link or you right clicked the link and chose Open or Open in New Tab or Open in New Window  from the context menu. You can view the file, but you cannot edit in the browser.
    Solution: Use the Back button to return to this page and try again.

  3. Icon: Class diskNavigate to your Class disk (where you will be saving documents created for these lessons) and create a folder named databases project1.
  4. Save the file in the new folder with the name starwars-Lastname-Firstname.txt, where you substitute your own first name and last name.
  5. View records: Scroll horizontally to view all of the fields in the records.
    The fields do not line up neatly because some records have more text in certain fields than other records do.
  6. NotePad: Word Wrap on (Windows 10)Word wrap: Toggle word wrapping on and off to see the difference.
    (In Notepad, Format > Word Wrap.)
    Does that help or does it make it harder to read a record?
  7. Queries: Answer the following questions about this small database:
    1. How many items were made in 1999?
        
    2. in 1977?  
        
    3. How many items from Episode 4? 
        
    4. How many items of Queen Amadala? 
        

    Check Answers

    Icon: TroubleProblem: Cannot find all of the items: Print the database with word wrapping turned on (File > Print). Circle or highlight the items you are looking for. Manual methods can work well for small databases.

  8. NotePad: records sortedSort: Use copy and paste to rearrange the order of the records so that the Episode numbers are in ascending order. The Episode number and name follow the name of the character.

    Be careful. This requires careful selection and positioning of the cursor before pasting. It may be easier to do with Word Wrap turned off. What a pain!

  9. Edit: Change the text in one or more fields of your choice. Add your name and the date below the last record.
  10. Icon: Class diskSave the file to save your changes.
  11. Icon: Print Print: From the menu choose, File > Print.
    (Notepad will wrap the text on the printed page, even if you have Word Wrap turned off.)

Perhaps this is enough to demonstrate how hard it is to work directly with text databases.