bmurch71
Board Regular
- Joined
- Oct 15, 2004
- Messages
- 68
I have a crosstab query which tabulates sales data by date and by department (department name is Row Header, date is column header), and is turn based on a query that selects the date range. In the select query, under the Date column, my criteria is set to "between [enter start date:] and [enter end date:], which prompts the user at runtime for the date range. Once I try and run the crosstab query, however, I get an error: "The Microsoft Jet database engine does not recognize '[enter start date:]' as a valid field name or expression." I've run into this before, and just cheated by manually changing the date range in the select query at each runtime, but there's got to be a better way! As you might have guessed, I'm not a VB guy (yet! but I'm working on it!), so I'm hoping that someone has a great solution or even a simple fix that I just haven't hit upon yet. Thanks in advance for any suggestions.
Brian
Brian