Do you want to automatically have the report run for the last workday, or do you to be prompted for a date?
If you want the last workday, you can get there, but that rules out a prompt for the date totally.
DayofWeek() returns an intger of 1 (sunday) thru 7 (Saturday). So, to get the last workday:
if Dayofweek(CurrentDate)=2 then {Table.DateField} in Dateadd("d",-3,CurrentDate) else
if Dayofweek(CurrentDate)=1 then {Table.DateField} in Dateadd("d",-2,CurrentDate) else
{Table.DateField} in Dateadd("d",-1,CurrentDate)
this will get every from 3 days ago if run on a Monday, from 2 days ago if run on a Sunday, ar from yesterday on all other days.
The downside is that you cannot be prompted for a date, but you could easily take the same repot and convert to a similar report with date prompts.
Let me know if you have any questions.
Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com