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!!
HOTWATTAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
Specify both [Forms]![frmEmployeeATLX]![dfsBegDate] And [Forms]![frmEmployeeATLX]![dfsEndDate] as parameters  of data type DateTime.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Developing Solutions LLCCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.