CSC 240 (Blum)1 More Access Some simple security measures Reports

Preview:

Citation preview

CSC 240 (Blum) 1

More Access

Some simple security measures

Reports

CSC 240 (Blum) 2

Open the Movie database in Notepad and find some readable text (plaintext)

CSC 240 (Blum) 3

Start Access but do not open a database

CSC 240 (Blum) 4

Go to Tools/Security/Encode/Decode Database …

CSC 240 (Blum) 5

Use the Encode/Decode dialog box to select the database to encrypt

CSC 240 (Blum) 6

Choose a name for the encrypted database

CSC 240 (Blum) 7

Open the encrypted database in Notepad and look for anything readable

CSC 240 (Blum) 8

Open the encoded database in Access which knows how to decode it.

CSC 240 (Blum) 9

Close the database, then open it “exclusively.”

CSC 240 (Blum) 10

Go to Tools/Security/Set Database Password …

CSC 240 (Blum) 11

Enter a password and repeat it in the Verify textbox. Click OK.

CSC 240 (Blum) 12

Close database and re-open it. You should be prompted for a password.

CSC 240 (Blum) 13

Add Movie poster field

• Perform the necessary steps to add the movie release poster to the database. You can find an image at http://www.imdb.com/ or http://movies.yahoo.com/

• You remember OLE Object field, use Paint to save image as bmp, etc.

CSC 240 (Blum) 14

Create a Movie form like the one below.

CSC 240 (Blum) 15

Go to the Report object and click on Create report by using wizard

CSC 240 (Blum) 16

Select the table or query for the report and then select the desired fields.

CSC 240 (Blum) 17

Proceed through the wizard questions

CSC 240 (Blum) 18

Proceed through the wizard questions

CSC 240 (Blum) 19

Proceed through the wizard questions

CSC 240 (Blum) 20

Proceed through the wizard questions

CSC 240 (Blum) 21

Proceed through the wizard questions

CSC 240 (Blum) 22

Result so far

CSC 240 (Blum) 23

Go to Design View.

CSC 240 (Blum) 24

Change the size, position and text and the

labels to make a better looking report.

CSC 240 (Blum) 25

Remove the MovieRunTime textbox.

CSC 240 (Blum) 26

Place two textboxes on the report.

CSC 240 (Blum) 27

Delete the labels that come with the textboxes.

CSC 240 (Blum) 28

Enter the text =([MovieRunTime] \ 60) & “ hr ” in the first textbox

CSC 240 (Blum) 29

Enter the text =([MovieRunTime] Mod 60) & “ min”

in the first textbox

CSC 240 (Blum) 30

In Layout View

CSC 240 (Blum) 31

Make more room for title

CSC 240 (Blum) 32

Right click on the MovieReleaseTimne Textbox and choose Properties

CSC 240 (Blum) 33

Under Format/ Text Align select Left.

CSC 240 (Blum) 34

In Layout View

CSC 240 (Blum) 35

Another Report

• Create a billing field in the appropriate table. – By billing we mean whether an actor or an

actress is the lead, second lead, etc. It determines the order in which the actors will be listed.

• Then create a query that lists the artists associated with the movies and make a report from that.

CSC 240 (Blum) 36

Go to the Sorting and Grouping button and add the Billing field to the fields used for sorting.

Recommended