Hi,
I have a very simple report based on an oracle stored procedure. I have two parameters for this report. My issue is that I get data when I enter both the parameters. If I just enter one parameter and leave the other blank or leave both blank I get no data. I want that if I don't enter any value for a parameter it should show me all the data. I am using crystal 11.
This is what I have in my Record Selection formula.
Thanks,
-E
I have a very simple report based on an oracle stored procedure. I have two parameters for this report. My issue is that I get data when I enter both the parameters. If I just enter one parameter and leave the other blank or leave both blank I get no data. I want that if I don't enter any value for a parameter it should show me all the data. I am using crystal 11.
This is what I have in my Record Selection formula.
Code:
(IF ISNULL({?FAC_TYPE}) OR {?FAC_TYPE}="" THEN
TRUE
ELSE
{?FAC_TYPE}={FSEFEQ.FAC_TYPE})
AND
(IF ISNULL({?FAC_BASE}) OR {FSEFEQ.FAC_BASE_IDENT}="" THEN
TRUE
ELSE
{?FAC_BASE}={FSEFEQ.FAC_BASE_IDENT})
Thanks,
-E