cricketbird
Registered User.
- Local time
- Today, 00:37
- Joined
- Jun 17, 2013
- Messages
- 119
If I run this query as a "select" query, it works fine, but if change it to crosstab, I get the error "The...engine does not recognize [Forms]![Bookings]![StartDate] as a valid field name or expression". Apparently this doesn't happen as a parameter query, but I don't want someone to have to manually enter a date. Is there a way around this?
Code:
TRANSFORM Sum([Bookings].Cost) AS SumOfCost
SELECT [Bookings].BookingDate
FROM [Bookings]
WHERE ((([Bookings].BookingDate)>[Forms]![Compare_Diets]![StartDate]))
GROUP BY [Bookings].BookingDate
PIVOT [Bookings].FacilityID;