G
gls858
I have a query based on date. The criteria in the date filed is Date()-1.
This works OK for Tuesday thru Friday but we're closed Sat and Sun. So on
Monday Date()-1 gives me a blank report. I have the report set to run each
day in the scheduler and a macro set up to e-mail the report. My work
around was to build two reports. One for Monday and one for the other days.
Not really the way I think it should be done.
Is it possible to have code that says if it Monday use Date()-3 and all
other days use Date()-1? Or is this a dumb way to do it? I realize I still
have a problem with holidays and such but I can live with that.
gls858
This works OK for Tuesday thru Friday but we're closed Sat and Sun. So on
Monday Date()-1 gives me a blank report. I have the report set to run each
day in the scheduler and a macro set up to e-mail the report. My work
around was to build two reports. One for Monday and one for the other days.
Not really the way I think it should be done.
Is it possible to have code that says if it Monday use Date()-3 and all
other days use Date()-1? Or is this a dumb way to do it? I realize I still
have a problem with holidays and such but I can live with that.
gls858