Sie sind auf Seite 1von 15

Assignment -12

Write Different step how to


Create a table in Datasheet
view. Create two tables
Student(student_id, firstname,
lastname,course,percentage)
and
Fees(Fees_id,Student_id,Fees_p
er_semester,due_date,payment
_date,paid)
Datasheet view provides a visual way to create a table.

1. You start by creating a new, blank database or by adding a new table to an existing database.
2. The new table opens automatically in Datasheet view. Notice how the new table contains a field called ID.
That's your primary key, so you don't need to create one.
3. To add your fields, double-click the first field header and enter the name for the field. When you finish, press
ENTER. Note If your field names contain more than one word, think twice before using spaces to separate
each word.
4. Go to the next blank field and enter a name in that header. Repeat the process until you've entered names for
all your fields, but with a couple exceptions: don't add any lookup fields, and don't add foreign key fields.
You'll add lookup fields later in this course, and you'll add foreign keys when you create your table
relationships in the next course in the series.
5. When you've finished, go to the Quick Access Toolbar and click Save. In the Save As dialog box, enter a
name for the table and click OK.
Assignment -13
Write Different step how to
Create a Form in Datasheet
view
How to create Forms in Access ?
There are a number of ways to create an Access form. we are going to use the ACCESS
FORM WIZARD.

1. Select form wizard

Open your database if it is not already open. Click the CREATE tab on the ACCESS
RIBBON and then select MORE FORMS from the forms group.

A drop down list of form types appears. You need to select FORM WIZARD from this
list.
2. Select table and fields

The Form wizard then opens as the pop up window below.

On the first page of the form wizard we select which table we are going to use as the
DATA SOURCE. Since there is only one table in this database so far, it should already
be selected for us in the TABLES/QUERIES combo box.

Underneath there is a list of the four fields in your table. You could select each field
individually by highlighting the field name and clicking the single arrow >. We can,
however, select all four just by clicking the double arrow >>. Once they have been
transferred into the right hand box they are selected. We can now click NEXT to go to
page 2 of the form wizard.
3. Form Layout

This is where we choose the FORM LAYOUT. We are going to leave this on the default
setting of COLUMNAR. Click NEXT again to move onto page three of the form wizard.
4. Form Style

Here we select a style that from the list box. Preview a style by clicking on its name.
This step just determines how the form looks aesthetically. Once you have selected a
style to your taste, click NEXT again.
5. Form Title

This is the last stage of the wizard. Here we are going to choose the name for our form
- lets say FORM1. We are going to leave the radio button selected for OPEN THE FORM
TO ENTER OR VIEW INFORMATION

All we need to do now is click FINISH and our form should like something like this:

6. Navigate Records via Access Form

As you can see, the form opens with the first record in your original table displayed.
You can navigate through each record using the NAVIGATION BUTTON at the bottom
left of the form window.
To move to the next record click the right arrow button on the navigation control. To
move to the last record click the >| button on the navigation control. To move
backwards through the record set use the left arrow buttons. You could edit any
record from the form, which will update the data in your table. For now, though, just
try navigating through the three records without changing any data.

7. Create New Record via Access Form

Now we move through the record set by adding more records. To do this click the
star button on the right of the navigation control. This should bring up a blank record.
Add entry in Form . Then we close the window.

Assignment -14
.

Write Different step how to


Create a Report in
Datasheet view

HOW TO CREATE A REPORT


There are many ways to create a report in Access. You can use the Report Wizard to generate a
report using Microsoft's step-by-step report wizard to create and format a report automatically.

1. Open Report Wizard

Begin by selecting the CREATE TAB on the Access Ribbon. Then click REPORT WIZARD
from the REPORTS group to open the pop up window.
2. Select Report Data Source and Fields

The Report Wizard is almost identical to that of the Form Wizard. On this page we will
select QUERY1 as the DATA SOURCE for the Report. This is done by selecting the query
from the list in the TABLES/QUERIES combo box. Then select all fields from QUERY1 by
clicking the double arrow to the right of the text box labelled AVAILABLE FIELDS. The
field names will now appear in the SELECTED FIELDS text box on the right. Click next
to go to the second page of the wizard.

3. Report Grouping Levels

Page two of the wizard is where you can add grouping levels if required. click next.

4. Record Sort Order

Page three of the wizard is where you determine what order the records are displayed
in your report. So for example you might want to display records in ascending order
of age. For this example, however, we are going to put your records into alphabetical
order for FIRSTNAME. Begin by clicking the top drop down box and selecting
FIRSTNAME.

5. Report Lay Out

This page of the Wizard is where you set the lay out for your report. There are various
lay out options, but in our case we shall keep to the default setting of TABULAR.

Click next.

6. Style

For style, select Access 2007 from the list and click next.
7. Name of Report

Name your report REPORT1 and then click FINISH.

Assignment -15
Design view to create a
query. Find out the
students who paid late
fine and late fine is 500
rupees.(Use the table
student and Fees)

Creating a Query Using the Query Wizard


1. Click the Query Wizard command In the Other group on the Create tab

Figure 30. New Query Dialog Box


2. Choose Simple Query Wizard

3. Click OK

Figure 31. Query Wizard - Select Tables & Fields

4. Select a Table or Query


5. Move fields from Available Fields to Selected Fields
6. Repeat steps 4 and 5 for additional tables for queries

7. Click Next
Figure 32. Query Wizard - Query Title

8. If desired, change the Query Title


9. Click Finish

Design view to create a


query
Design view gives you more control over a query. For example, you can limit your results to just employees in
the marketing department, and sort those records by the employees' last names.

Remember, you can filter and sort data when you work in datasheet view, but adding filtering criteria and sort
orders to a query makes those criteria automatic — they appear whenever you run the query.

1. On the Create tab, in the Other group, click Query Design. The designer starts and displays the Show
Tabledialog box.
2. In the dialog box, select your record source. You can use a combination of tables and queries, and your choices
appear in the upper section of the designer.
3. In your record source, double-click the fields you want to see in your record set, your results. Your choices
appear in the design grid. That's also where you specify criteria and other settings, such as whether to sort the
results, and you'll get a chance to do that in the practice.
4. When you finish adding fields and criteria, test your query. Go to the Design tab on the Ribbon, and in
theResults group, click Run.

Das könnte Ihnen auch gefallen