Criteria in a Crosstab query

S

Samina Gordon

Hello,

I have created a crosstab query to create data for a
report in a week schedule format. However, when I try to
enter criteria to only display records within a certain
date range, e.g. Between [Enter Start Date: ] And [Enter
End Date: ] access won't accept it.

This criteria works in my other standard query.

Can anyone help?

Thanks
Samina
 
J

JohnFol

You also need to enter it into the parameters dialog box
With the query open in design view, right click on the grey back ground and
select Parameters ..
 
J

John Vinson

Hello,

I have created a crosstab query to create data for a
report in a week schedule format. However, when I try to
enter criteria to only display records within a certain
date range, e.g. Between [Enter Start Date: ] And [Enter
End Date: ] access won't accept it.

This criteria works in my other standard query.

This is an annoying little glitch with Crosstab queries. It is always
ALLOWED to explicitly define a query's parameters; with a crosstab
it's REQUIRED.

Open the query in design view, and right mouseclick in the background
of the tables (or use the View menu option) and select Parameters.
Copy and paste the [Enter Start Date: ] and [Enter End Date: ]
parameters - they must match EXACTLY - and specify that they are of
Date type.
 
D

Duane Hookom

You must explicitly declare the parameter data types. Select
Query|Parameters and enter
[Enter Start Date: ] Date/Time
[Enter End Date: ] Date/Time
 
C

Cameo

I usually create a 2nd query, where I add the Crosstab and the original
query (Query1) with dates.

Add
Between [Begin Date] and [End Date] as the criteria for Query1.MyDate

Hope this helps.

Cameo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top