If {?Param1} = Date(1900,01,01)
and
{?Param2} = 'ALL'
[COLOR=green]
// your default values
[/color]
Then
True
[COLOR=green]
//no parameter was used
[/color]
else
If
({?Param1} <> Date(1900,01,01)
and
{?Param2} = 'ALL' )
[COLOR=green]
//used Date parameter
[/color]
then
{table.datefield = {?Param1}
else
If
({?Param1} = Date(1900,01,01)
and
{?Param2} <> 'ALL'
[COLOR=green]
//used other one
[/color]
{table.stringfield} = {?Param2}
else
If
({?Param1} <> Date(1900,01,01)
and
{?Param2} <> 'ALL'
[COLOR=green]
//used BOTH
[/color]
(
{table.stringfield} = {?Param2}
and
{table.Datefield = {?Param1}
)