• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 44
  • Last Modified:

Cross tab Query error question

I am trying to create a cross tab query. I have a date range in the query I am using that pulls in two dates and retrieves all the information between those two dates. When I create a cross tab query I get an error message that says access does not recognize Between [Forms]![frmEmployeeATLX]![dfsBegDate] And [Forms]![frmEmployeeATLX]![dfsEndDate] as an expression? Is it possible to create a cross tab query that uses a date range from a form? I attached a couple photos. Any help would be much appreciated!!
0
HOTWATT
Asked:
HOTWATT
2 Solutions
 
Gustav BrockCIOCommented:
Specify both [Forms]![frmEmployeeATLX]![dfsBegDate] And [Forms]![frmEmployeeATLX]![dfsEndDate] as parameters  of data type DateTime.
0
 
Dale FyeCommented:
this may also relate to any other queries you are using to define the cross tab.

I've found that if you use a saved query, which has parameters defined in it, you will also need to define those paramters in the cross-tab query, even though you would think that the definition of the original query would handle that.

Dale
0
 
PatHartmanCommented:
No points please.  Apparently the Crosstab query processor was written by a different MS programmer who didn't use the same specs as were used by the ones who wrote the other query processors.  That means that any crosstab query or query used by a crosstab query MUST specifically define parameters even though queries not involved in crosstabs don't need to satisfy that requirement.  It isn't technically a bug but it is an unnecessary inconsistency that bites everyone at some point.
0
 
HOTWATTAuthor Commented:
Thanks for the help! That worked perfectly.
0
 
Gustav BrockCIOCommented:
You are welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now