Set up table like:
Code:
RecID | ProdID | Length | Width | Price
1 | 1 | 12 | 12 | 50
2 | 1 | 12 | 24 | 60
3 | 1 | 12 | 36 | 70
4 | 1 | 12 | 42 | 80
5 | 1 | 24 | 12 | 55
6 | 1 | 24 | 24 | 65
7 | 1 | 24 | 36 | 75
8 | 1 | 24 | 42 | 85
...
Make the width and length fields number type. If all the products follow the same grid layout, will be about 1200 records.
RecID is primary/foreign key.
User selects product from combobox, RecID is saved.
Two ways to display the price data.
1. The textbox could have expression:
DLookup("Price", "tablename", "RecID=" & Me.cbxProduct)
2. Join the product table to the order detail table.
This table setup assumes price for each dimension pair will be different for each product. If 12 x 12 will always be $50 regardless of product, need to rethink this.