ramblinrose
MIS
I am using Crystal Reports 2016
I have been tasked with developing a report that is based off a user performing several search options. They can search by 1 or multiple fields. I developed parameters for each field that can be searched on with the optional prompt set to true. I then added the prompts to the record selections as shown below.
(not HasValue({?Social Security #}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.ID_SSN} = {?Social Security #}) and
(not HasValue({?Client CIN Number}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.CSI_CIN} = {?Client CIN Number}) and
(not HasValue({?AKA - First Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.AKA_FIRST_NAME} = {?AKA - First Name}) and
(not HasValue({?AKA - Last Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.AKA_LAST_NAME} = {?AKA - Last Name}) and
(not HasValue({?Maiden Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.MADIEN_NAME} = {?Maiden Name}) and
(not HasValue({?First Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.FIRST_NAME} = {?First Name}) or
(not HasValue({?Last Name (with Soundex)}) or Soundex({MH_CMHC_PATIENT_DEMOGRAPHICS.LAST_NAME}) = Soundex({?Last Name (with Soundex)})) and
(not HasValue({?Last Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.LAST_NAME} = {?Last Name}) and
(not HasValue({?Case Number}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.CID} = {?Case Number})
The problem I am finding is that if I enter the Case Number prompt or the Last Name I get what is expected, but not for some of the other prompts where I get all the records. Does anyone have a better way of doing this?
Thank you.
Rose Mary
I have been tasked with developing a report that is based off a user performing several search options. They can search by 1 or multiple fields. I developed parameters for each field that can be searched on with the optional prompt set to true. I then added the prompts to the record selections as shown below.
(not HasValue({?Social Security #}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.ID_SSN} = {?Social Security #}) and
(not HasValue({?Client CIN Number}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.CSI_CIN} = {?Client CIN Number}) and
(not HasValue({?AKA - First Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.AKA_FIRST_NAME} = {?AKA - First Name}) and
(not HasValue({?AKA - Last Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.AKA_LAST_NAME} = {?AKA - Last Name}) and
(not HasValue({?Maiden Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.MADIEN_NAME} = {?Maiden Name}) and
(not HasValue({?First Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.FIRST_NAME} = {?First Name}) or
(not HasValue({?Last Name (with Soundex)}) or Soundex({MH_CMHC_PATIENT_DEMOGRAPHICS.LAST_NAME}) = Soundex({?Last Name (with Soundex)})) and
(not HasValue({?Last Name}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.LAST_NAME} = {?Last Name}) and
(not HasValue({?Case Number}) OR {MH_CMHC_PATIENT_DEMOGRAPHICS.CID} = {?Case Number})
The problem I am finding is that if I enter the Case Number prompt or the Last Name I get what is expected, but not for some of the other prompts where I get all the records. Does anyone have a better way of doing this?
Thank you.
Rose Mary