I
ijw
Hi,
Below I have described five tables in my database. The end result that
I'm trying to achieve is When I type in a Product in the Order Details
table, I would like a form that not only dlookup's the price, but can
also generate multiple lines on the Order Components table.
Components (tbl)
ComponentID ComponentName
(prim) (ind No dupe)
1 Comp1
2 Comp2
3 Comp3
4 Comp4
Product Break Down (tbl)
ProductNameID ProductBreakDownName ComponentID Colour
(prim) (ind dupe OK) (ind dupe OK) (default colour
.. for component)
1 Prod1 Comp2 GS
2 Prod1 Comp3 G
3 Prod2 Comp1 G
4 Prod2 Comp2 GS
5 Prod2 Comp4 G
Products (tbl)
ProductID ProductBreakDownName UnitPrice
(prim) (ind No dupe)
1 Prod1 $15.00
2 Prod2 $20.00
Order Details (tbl)
OrderDetailsID ProductID UnitPrice
(prim) (ind dupe OK) (DLookUp Products tbl)
1 Prod1 $15.00
2 Prod1 $15.00
3 Prod2 $20.00
Order Components (tbl)
OrderCompID OrderDetailsID ProductID ComponentID Color
(prim) (ind dupe OK) (from Order (DLookUp (DLookUp
.. Details Product Break Product Break
.. tbl) Down tbl) Down tbl)
1 1 Prod1 Comp2 GS
2 1 Prod1 Comp3 G
3 2 Prod1 Comp2 GS
4 2 Prod1 Comp3 G
5 3 Prod2 Comp1 G
6 3 Prod2 Comp2 GS
7 3 Prod2 Comp4 G
The DLookup for the Component ID and Color fields on the Order
Components table will display default components and colors for each
for each product, but these may need to be able to be changed.
When a ProductID is entered in the Order Details table, I need to be
able to generate multiple lines in the Order Components table.
I don't know how to start this next step, and would really appreciate
any advice.
Thanks
Below I have described five tables in my database. The end result that
I'm trying to achieve is When I type in a Product in the Order Details
table, I would like a form that not only dlookup's the price, but can
also generate multiple lines on the Order Components table.
Components (tbl)
ComponentID ComponentName
(prim) (ind No dupe)
1 Comp1
2 Comp2
3 Comp3
4 Comp4
Product Break Down (tbl)
ProductNameID ProductBreakDownName ComponentID Colour
(prim) (ind dupe OK) (ind dupe OK) (default colour
.. for component)
1 Prod1 Comp2 GS
2 Prod1 Comp3 G
3 Prod2 Comp1 G
4 Prod2 Comp2 GS
5 Prod2 Comp4 G
Products (tbl)
ProductID ProductBreakDownName UnitPrice
(prim) (ind No dupe)
1 Prod1 $15.00
2 Prod2 $20.00
Order Details (tbl)
OrderDetailsID ProductID UnitPrice
(prim) (ind dupe OK) (DLookUp Products tbl)
1 Prod1 $15.00
2 Prod1 $15.00
3 Prod2 $20.00
Order Components (tbl)
OrderCompID OrderDetailsID ProductID ComponentID Color
(prim) (ind dupe OK) (from Order (DLookUp (DLookUp
.. Details Product Break Product Break
.. tbl) Down tbl) Down tbl)
1 1 Prod1 Comp2 GS
2 1 Prod1 Comp3 G
3 2 Prod1 Comp2 GS
4 2 Prod1 Comp3 G
5 3 Prod2 Comp1 G
6 3 Prod2 Comp2 GS
7 3 Prod2 Comp4 G
The DLookup for the Component ID and Color fields on the Order
Components table will display default components and colors for each
for each product, but these may need to be able to be changed.
When a ProductID is entered in the Order Details table, I need to be
able to generate multiple lines in the Order Components table.
I don't know how to start this next step, and would really appreciate
any advice.
Thanks