Hi, please help
I’m using crystal report 10, database type: OLE DB(ADO) with SQLOLEDB server.
I’m trying to run the parameters.
The 1st parameter has three STATIC values : “Case Number”, “Patient Number” and “Case Name” in default values.
If I pick "Case Number" in the 1st parameter, then the Dynamic Parameter in the 2nd drop-down that would appear all records in the table such as:
15
22
23
48
Sample data is below....
RECORD CaseNo PatientNo CaseName
1 15 82545 Johnson
2 22 82582 Travis
3 23 95221 McNail
4 48 97215 Lagunas
Code below:
Named {?Type} for 1st parameter and {?Type_Selection} for 2nd parameter.
In the record selection formula, I use:
If {?Type} = "Case Number" then
{table.CaseNo} = {?Type_Selection} else
if {?Type} = "Patient Number" then
{table.PatientNo} = {?Type_Selection} else
if {?Type} = "Case Name" then
{table.CaseName} = {?Type_Selection}
In main report I named fomula {?Fields}and code:
if {?Type} = "Case Number" then {table.CaseNo} else
if {?Type} = "Patient Number" then {table.PatientNo} else
if {?Type} = "Case Name" then {table.CaseName}
I don’t know what to do for the 2nd parameter? Please help.
TN (USA). I'm using Windows XP, Crystal Reports 10 and SQL Server
I’m using crystal report 10, database type: OLE DB(ADO) with SQLOLEDB server.
I’m trying to run the parameters.
The 1st parameter has three STATIC values : “Case Number”, “Patient Number” and “Case Name” in default values.
If I pick "Case Number" in the 1st parameter, then the Dynamic Parameter in the 2nd drop-down that would appear all records in the table such as:
15
22
23
48
Sample data is below....
RECORD CaseNo PatientNo CaseName
1 15 82545 Johnson
2 22 82582 Travis
3 23 95221 McNail
4 48 97215 Lagunas
Code below:
Named {?Type} for 1st parameter and {?Type_Selection} for 2nd parameter.
In the record selection formula, I use:
If {?Type} = "Case Number" then
{table.CaseNo} = {?Type_Selection} else
if {?Type} = "Patient Number" then
{table.PatientNo} = {?Type_Selection} else
if {?Type} = "Case Name" then
{table.CaseName} = {?Type_Selection}
In main report I named fomula {?Fields}and code:
if {?Type} = "Case Number" then {table.CaseNo} else
if {?Type} = "Patient Number" then {table.PatientNo} else
if {?Type} = "Case Name" then {table.CaseName}
I don’t know what to do for the 2nd parameter? Please help.
TN (USA). I'm using Windows XP, Crystal Reports 10 and SQL Server