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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform Help Please 1

Status
Not open for further replies.
Sep 12, 2006
111
US
The database project I am working on seems somewhat basic but I continue to struggle. The intent of the database is to select products for classrooms in a school. I have configured the following tables.

tblRooms
==================
RoomNumber Primary Key
RoomName

tblProducts
==================
ProductTag Primary Key
ProductType
ProductManufacture
ProductModel
ProductModel
UnitPrice
Description

tblFurnitureSelection
==================
ID Primary Key
RoomNumber link to tblRooms
ProductType link to tblProducts
Quantity

I have created a subform based off the Funiture Selection Table. I placed this subform on a main form that shows the room number and room name. The intent is to use the subform to select the products and quantities for that room.

The subform has the ProductType drop down selection list and the quantity input field. Is their a way when a product is selected from the list it will display the other fields in the Products table like Product Manufacture Product Model, Product Model.

Any help is appreciated.

Thank You
 
You can set the Row Source of the ProductTYpe row source to something like:
Code:
SELECT tblProducts.prodTagID, [prodType] & ": " & [prodManufacture] & ": " & [prodModel] & " " & Format([ProdPrice],"Currency") AS Expr1
FROM tblProducts
ORDER BY [prodType] & ": " & [prodManufacture] & ": " & [prodModel] & " " & Format([ProdPrice],"Currency");
Set the number of columns to 2 and the column widths to 0,2.

Also, isn't the field in tblFurnitureSelection "prodTagID"?

Did you change the field type of RoomNumber so they are both the same?

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top