Hi,
Using Crystal v.10
I'm trying to create a series of four parameters based on field values from 'tblMill' a SQL server table (ODBC connection). The fields have a relational hierarchy structure within the table.
The fields are
1. Company
2. Division
3. Site
4. Plant
and I need a parameter for each (All 4 fields hold string values)
If I select the Company parameter, I can select a value held in the Company field (easy). The 'Company' field contains various values
(i.e. ComA, ComB, ComC, ComD etc)
If I select ComB in the Company parameter, I need to display all of the associated values in the Division field in the second parameter.
The Division field holds many values
(i.e. Div1, Div2 Div3, Div4, Div5, Div6, Div7 etc)
However, only some of these are associated with ComB in the tblMill table.
(Div2, Div3, Div5)
Without 'hard-coding' each associated value, is there a way that only the relivant values are displayed in a drop-down box for the Division parameter?
This method needs to be repeated for the Site and Plant parameters.
Thanks in advance,
Using Crystal v.10
I'm trying to create a series of four parameters based on field values from 'tblMill' a SQL server table (ODBC connection). The fields have a relational hierarchy structure within the table.
The fields are
1. Company
2. Division
3. Site
4. Plant
and I need a parameter for each (All 4 fields hold string values)
If I select the Company parameter, I can select a value held in the Company field (easy). The 'Company' field contains various values
(i.e. ComA, ComB, ComC, ComD etc)
If I select ComB in the Company parameter, I need to display all of the associated values in the Division field in the second parameter.
The Division field holds many values
(i.e. Div1, Div2 Div3, Div4, Div5, Div6, Div7 etc)
However, only some of these are associated with ComB in the tblMill table.
(Div2, Div3, Div5)
Without 'hard-coding' each associated value, is there a way that only the relivant values are displayed in a drop-down box for the Division parameter?
This method needs to be repeated for the Site and Plant parameters.
Thanks in advance,