tnguyen315
MIS
Hello, I need help on these checkbox when there’re a value in the table.
This is my subreport linked with PatientNo. I want to show the initial begin date only. So on the subreport, I have to groupby PatientNo, second groupby BeginDate.
These are example of my table. (tablename: tableRX)
Patient_no Begin_date Rx
1130920 11/3/2010 INH
1130920 11/3/2010 RIF
1130920 11/3/2010 EMB
1130920 11/3/2010 PZA
1130920 11/3/2010 B6
1130920 11/19/2010 INH
1130920 11/19/2010 RIF
1130920 11/19/2010 EMB
1130920 11/19/2010 PZA
1130920 11/19/2010 B6
On my subreport I would like to show something like this on this patientNo
BeginDate: 11/3/2010
Yes (checkbox) No (Checkbox) Unknown(checkbox)
INH X
RIF X
LEV X
PZA X
PAS X
RIP X
OFL X
EMB X
GAT X
B6 X
If the patient doesn’t have any record then the Unknown box should be checked. Please help.
I created some formula fields such as @INH_Yes, @INH_No, @INH_UNK and etc…
For instance:
@INH_Yes
If ({tableRX.RX}) = "INH" then "X" else " "
This is working fine on the “Yes checkbox) , but not on the “No Checkbox”
@INH_No:
If ({tableRX.RX}) <> "INH" then "X" else " "
And I don’t know how to do on the @INH_Unknown
And same things to the other formula fields (@PZA_Yes, @PZA_No, @PZA_Unknown, etc…)
Please help, I'm very appreciated. Again, thank you very much.
This is my subreport linked with PatientNo. I want to show the initial begin date only. So on the subreport, I have to groupby PatientNo, second groupby BeginDate.
These are example of my table. (tablename: tableRX)
Patient_no Begin_date Rx
1130920 11/3/2010 INH
1130920 11/3/2010 RIF
1130920 11/3/2010 EMB
1130920 11/3/2010 PZA
1130920 11/3/2010 B6
1130920 11/19/2010 INH
1130920 11/19/2010 RIF
1130920 11/19/2010 EMB
1130920 11/19/2010 PZA
1130920 11/19/2010 B6
On my subreport I would like to show something like this on this patientNo
BeginDate: 11/3/2010
Yes (checkbox) No (Checkbox) Unknown(checkbox)
INH X
RIF X
LEV X
PZA X
PAS X
RIP X
OFL X
EMB X
GAT X
B6 X
If the patient doesn’t have any record then the Unknown box should be checked. Please help.
I created some formula fields such as @INH_Yes, @INH_No, @INH_UNK and etc…
For instance:
@INH_Yes
If ({tableRX.RX}) = "INH" then "X" else " "
This is working fine on the “Yes checkbox) , but not on the “No Checkbox”
@INH_No:
If ({tableRX.RX}) <> "INH" then "X" else " "
And I don’t know how to do on the @INH_Unknown
And same things to the other formula fields (@PZA_Yes, @PZA_No, @PZA_Unknown, etc…)
Please help, I'm very appreciated. Again, thank you very much.