The following should either accept the selected start date or if 9/9/9999 is selected, it would default to >= the value of the end date (the selected date or current date) - 1:
(
(
{?StartDate} <> date(9999,9,9) and
{table.date} >= {?StartDate}
) or
(
{?StartDate} = date(9999,9,9) and
(
{?EndDate} <> date(9999,9,9) and
{table.date} >= {?EndDate} - 1
) or
(
{?EndDate = date(9999,9,9) and
{table.date} >= currentdate -1
)
)
) and
(
(
{?Enddate} <> date(9999,9,9) and
{table.date} < {?Enddate} + 1
) or
(
{?Enddate} = date(9999,9,9) and
{table.date} < currentdate + 1
)
)
-LB