I used lbass's formula, simply because I understood what it did. Thanks for your help though Scotto. I want to add a list of our holidays and this is what I have so far...
(
if dayofweek(currentdate) = 2 then
{Table1.Date} = currentdate-3
else if
currentdate = Date (2006,01,13)
then
{Table1.Date} = currentdate-4
else
{Table1.Date} = currentdate-1
)
I went to add multiple holidays by adding an
or Date (2006,07,04)
(
if dayofweek(currentdate) = 2 then
{Table1.Date} = currentdate-3
else if
currentdate = Date (2006,01,13) or
Date (2006,07,04)
then
{Table1.Date} = currentdate-4
else
{Table1.Date} = currentdate-1
)
and I get an error "a boolean is required here." The formula works with one date, but not more than one. What did I do wrong?