Access Inventory Exercise for Access 2003

 

 

1. First, get your Excel inventory spreadsheet and take away all the calculations

OR create a new spreadsheet with 20 items with these columns: Item#, Item, Category, Quantity, Unit Value

OR use this inventory spreadsheet: http://home.adelphi.edu/~pe16132/csc170/access/inventoryforaccess.xls

 

2. Import your inventory spreadsheet into a new Access Database.

 

 

3. Work with queries: - Notice how the query is a view on the table and reflects all changes in the table.

 

List the item #, item, category and quantity of every item that has at least a quantity of 2. Sort by category. Save the query. To do this:

 

 

 

 

 

4. Work with a grouping query to get group totals: To get the totals for each category: (Notice how Access can easily get group totals.)

 

 

It will look like this:

 

Steps 5 & 6 are optional They will help you understand what we will cover in the next classes, but you do not have to do them to get 100. If you find I go too fast in class when presenting a new program, or you find Access very confusing, it will help to do these at home first.


5. optional - Add a category table in Excel. The categories should match the categories in your inventory list.

. You can enter a list of categories in Excel and then import them.

The Category table you will create will have the following fields: (Notice how you have have 2 tables in Access)

 

Field

Type

Size

Category

Text

15

Description

Text

100

Sort Order

Number

int

 

 

6. optional - Create a query that shows each of your items with the category description.

 

 

 

 

Category

Description

Sort order

 

Item #

Item

Category

Quantity

Unit Value

Total Value

Item #

Item

Category

Quantity

Unit Value

Total Value

 

 

Item #

Item

Category

Quantity

Unit Value

Total Value

Category ID

Descr-

iption

Item #

Item

Category

Quantity

Unit Value

Total Value

Category ID

Descr-

iption

 

 

 

 

 

 

You are done. Upload this to Moodle's Access Inventory Project Upload.