Wednesday, February 29, 2012

Adding Digital Files to a Database

Digital files such as image and sound files can be inserted into a database.

Collect digital sound and image files of each of your friends in your Address database.

Open the table that contains the address details.

Go into design view.

Add two new fields called voice message and photo.

Set the data types for each to OLE Object.

Go back into form view.

In a cell under the new field simply right click and select insert object.

Select the Create from file option and then browse to the location of your sound or image file.

To view or listen to your files you will need to create a new form that contains the voice message and photo fields.

The photo field contains an image of the person and the sound field contains a sample of music. By following the step above i have been able to successfully add a photo and music into a form.

    Bits and Bytes:

    http://computer.howstuffworks.com/bytes.htm/printable

    You will find there is a lot of information on the site. To help you identify what you need to know, search the site for the keywords  and questions listed below


    Digit: Any of the numerals from 0 to 9, esp. when forming part of a number

    Base 10:
    Well known decimal number system, represent any value with digit 0-9.

    Where does the word bit originate from?

    Comes from the word Binary digIT

    Examine the tables beow:

    Base10:
    Place Value
    10 000
    1 000
    100
    10
    1
    Place Value
    104
    103
    102
    101
    100
    Digit
    9
    0
    3
    0
    2
    Digit Value
    90 000
    0
    300
    0
    2
    90 302 (base 10) = (9 x 10000) + (3 x 100) + (2 x 1)

    If  6,357 can be written as;(6 * 1000) + (3 * 100) + (5 * 10) + (7 * 1) = 6000 + 300 + 50 + 7

    How would you write 4,321(4 * 1000) + (3 * 100) + ( 2 * 10) + (1 * 1) = 4000 + 300 + 20 + 1

    Examine the table below:

    Base2
    Place Value
    16
    8
    4
    2
    1
    Place Value
    24
    23
    22
    21
    20
    Digit
    1
    0
    1
    0
    0
    Digit Value
    16
    0
    4
    0
    0
    10100 (base 2) = (1 x 16) + (1 x 4) = 20 (base 10)
    Write the following numbers in binary (base 2)
     21
    10101= (1 x 16) + (1 x 4) + (1 x 1)
    24
    11100= (1 x 16) + (1 x8)
    30
    11110= (1 x 16) + (1 x 8) + (1 x 4) + (1 x 2)
    What is a byte?
    A group of binary digits or bits (usually eight) operated on as a unit

    How many bytes in a kilo, mega, giga and tera bytes?
    1 kilobyte = 1024 bytes
    1 megabyte = 1 048 576 bytes
    1 gigabyte = 1 073 741 824 bytes
    1 terabyte = 1 099 511 627 776 bytes