Experts...
my Access database keeps track of orders for frozen food items.
I have a crosstab query that groups the sale of items by delivery date - with the ultimate aim of it showing me the stock remaining level of item(s) as the week progresses, via a report or a form. We take orders throughout the week from customers.
The cross tab creates a date column for each day of the week (based on paremetres input via a form), and in this column shows me the item sales.
I understand the concept of fixing column headers and have created column headers of Day1, Day2, Day3, Day4, Day5 (one weeks worth of data is sufficient for my purposes just now).
Knowing that I have total item sales data grouped by DeliveryDate could anyone help me with an expression that will consistently produce output column headings of ...
Day1, Day2, Day3, Day4, Day5
for ANY set of 5 consecutive dates that are passed to the query and it finds data for?
I have been playing around with
ColHead : "Day" & DateDiff("d",Format([orderDeliveryDate],"0"),Date())
and I think I'm getting close????
Many thanks...
Mike