0% found this document useful (0 votes)
81 views14 pages

Practical 3

Uploaded by

sahilcarry42121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views14 pages

Practical 3

Uploaded by

sahilcarry42121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Practical 3

Create the bookstore database with necessary table and data and modify the database to
accommodate the following

Create a new database

Open Microsoft Access

Click on file -> new

Select Blank Database

Enter a name of your database, you can give any name, I’m giving test, click on create

Create the books table

isbn longtext

title longtext

author longtext

publish number

price currency
1)Enter 10 records into books

Create a sql query

Now in the query write the following insert query to enter the data into the table

insert into books(isbn,title,author,publish,price)

values('1','destiny','tom','2000','10000')

click on yes, your data will be inserted

similarly enter 10 records

2) change the price of Persian to 2000

update books

set price='2000'

where title='persian'
3)delete the book having title sql

delete from books

where title='sql'

Now you can see book having title sql has been deleted

Practical 3B

Create a table employ with (id,name,job,age,salary). Insert 10 records. Create a query to display the
information of all the managers. Create a query to display the name of employs who’s salary is
>15,000

Open Ms-Access and create a new database

Create a new table with following field and datatype

id autonumber

fname longtext

job longtext

age number

salary currency
1) Enter 10 records in the table

2)Create a query to display all the information of managers

select*from emp where job='Manager'

3)Create a query to display the names of employ who salary is >15000

select*from emp where salary>15000


Practical 3C
Use the Form Wizard to create a form, Move and Size controls within a form.

Students must have the knowledge of practical 2B, how to create a form

1) First create an employee table, with following fields and datatype

Save the table as employee

2) Now select the table, for which you want to create a form, in my case its employee

Now in the top bar, you can see home,create, external data and database tools

Click on create

Search for form

In form click on form wizard


This window will open

click on >>, then next


By default columnar will be selected, click on next

Give any name to you form (what do you want to name your form) I’ve given emp, click on finish
Following window will be open

Now we’ve created the from, close it and open the from in design view
Following window will be open

Delete the eid field as it is autonumber

Now in above tab, you can see design is selected

Next to view you can see themes click on it to give theme to your form
Once you click on themes following menu will be open, choose any theme you like

Click on it to apply.

Similary click on font, and choose the font you like


Now you can insert image to the form, by clicking on insert image
Click on logo to add logo to your form, next to image

You can see logo on top left

Click on title below the logo to give title to your form


You can also add date and time to your form, which is below the logo, click on it and choose the
format you want and select it

Date and time would be added on top right

Ctrl+s to save the changes you made

Close the from

Now double click on the form to open

You can see, we’ve inserted image, logo, title and date to our form

You might also like