G
Guest
Hi,
I have a query which uses a critiera
Between [reviewdate] And [reviewdate]+[ReviewDays]-1
to plot a weekly itinerary, a crosstab query is then created from this to
print out a report showing all our staff locations Mon-Frid each week.
This works perfectly (almost!). The problem I have is reviewdays is the
number of days the activity took place. If the days are not consecutive
though or fall with a weekend inbetween the results are incorrect.
Does anyone know how I can get round this without creating a temporary table
and making manual amendments?
eg If there is an activity entered skip this date and use the next one, same
applies to if its a Saturday or Sunday. The query has several tables linked
to get all the data for the report - not sure how to produce this sort of
recordset / crosstab query by code.
Anyhelp would be most appreciated! Been trying to overcome this for a while
now...
Sue
I have a query which uses a critiera
Between [reviewdate] And [reviewdate]+[ReviewDays]-1
to plot a weekly itinerary, a crosstab query is then created from this to
print out a report showing all our staff locations Mon-Frid each week.
This works perfectly (almost!). The problem I have is reviewdays is the
number of days the activity took place. If the days are not consecutive
though or fall with a weekend inbetween the results are incorrect.
Does anyone know how I can get round this without creating a temporary table
and making manual amendments?
eg If there is an activity entered skip this date and use the next one, same
applies to if its a Saturday or Sunday. The query has several tables linked
to get all the data for the report - not sure how to produce this sort of
recordset / crosstab query by code.
Anyhelp would be most appreciated! Been trying to overcome this for a while
now...
Sue