K
Karen
Here's the setup: Access 2007 (but the app is in 2002 - 2003 file
format). Split database. Table 1 is Reagents and has a code and a
producttype (other fields not relevant here). Table 2 is
Ingredients. It has a code field that is the key to link to Reagents
(one to many). There is also a RMcode field that is the code for the
raw material that is an ingredient of the Reagent.
Some of the ingredients are Pre-mixes and a Reagent can have
ingredients that include several Pre-Mixes. Premixes have their own
ingredients (they are included in the Reagents Table and their
components are in the Ingredients Table). Reagents that have this
structure have a ProductType of 'X' and Premixes have a producttype of
'Premix'.
An example follows:
Table Code Desc ProductType
Reagent 5555 Special Reagent X
RMCode RMDesc
Ingredients 5555PM-A Premix A for Special Reagent
5555PM-B Premix B for Speical Reagent
25789 XYZ Chemical
25412 RST Chemical
Code Desc
ProductType
Reagent 5555PM-A Premix A for Special Reagent Premix
Ingredients 25963 HIJ Chemical
25123 MNO Chemical
25741 ABC Chemical
Problem: I want to be able to enter in a Reagent code on a form and
have a bit of code that would print the ingredients list for the
Reagent 5555 and then print the ingredients list for the Premixes
5555PM-A and 5555PM-B.
I have a form that prints a single level ingredients list. I just
need to figure out how to print that single level ingredients list and
then turn around and print another if there's an ingredient that is a
Premix (by virtue of the producttype).
any help would be appreciated.
Karen
format). Split database. Table 1 is Reagents and has a code and a
producttype (other fields not relevant here). Table 2 is
Ingredients. It has a code field that is the key to link to Reagents
(one to many). There is also a RMcode field that is the code for the
raw material that is an ingredient of the Reagent.
Some of the ingredients are Pre-mixes and a Reagent can have
ingredients that include several Pre-Mixes. Premixes have their own
ingredients (they are included in the Reagents Table and their
components are in the Ingredients Table). Reagents that have this
structure have a ProductType of 'X' and Premixes have a producttype of
'Premix'.
An example follows:
Table Code Desc ProductType
Reagent 5555 Special Reagent X
RMCode RMDesc
Ingredients 5555PM-A Premix A for Special Reagent
5555PM-B Premix B for Speical Reagent
25789 XYZ Chemical
25412 RST Chemical
Code Desc
ProductType
Reagent 5555PM-A Premix A for Special Reagent Premix
Ingredients 25963 HIJ Chemical
25123 MNO Chemical
25741 ABC Chemical
Problem: I want to be able to enter in a Reagent code on a form and
have a bit of code that would print the ingredients list for the
Reagent 5555 and then print the ingredients list for the Premixes
5555PM-A and 5555PM-B.
I have a form that prints a single level ingredients list. I just
need to figure out how to print that single level ingredients list and
then turn around and print another if there's an ingredient that is a
Premix (by virtue of the producttype).
any help would be appreciated.
Karen