Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Calulations

Status
Not open for further replies.
Joined
Sep 12, 2006
Messages
111
Location
US
I have created 3 tables:

Table1: Room Information
- RoomName
- RoomNumber

Table2: Product Information
- ProductName
- ProductMake
- ProductModel

Table3: Quanity information
- RoomNumber (Relationship)
- ProductName (Relationship)
- Quantity

The user opens Table 3 and selects the room number, the product for that room and inputs the quantity.

I need to run the following reports:

Report 1:
a report for each room, the products for that room and the quantity.

Report 2:
a report for each product and the total number. The total number is based on the quantity used in each room.

Any help is appreciated.


 


Report 1:
a report for each room, the products for that room and the quantity.
[tt]
Select ProductName, RoomNumber, Sum(Quantity)
From [Quanity information]
Group by ProductName, RoomNumber
[tt]
Report 2:
a report for each product and the total number. The total number is based on the quantity used in each room.
[tt]
Select ProductName, Sum(Quantity)
From [Quanity information]
Group by ProductName
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top