date parameter and crosstab query problem

L

LMB

Hi Guys,

I am using Access 2000.

I created a crosstab query. The sql is below in case that helps you.

TRANSFORM Max(qryrptTherapistAuditNumbers.CountOfEmpAuditID) AS
MaxOfCountOfEmpAuditID
SELECT qryrptTherapistAuditNumbers.Employee
FROM qryrptTherapistAuditNumbers
GROUP BY qryrptTherapistAuditNumbers.Employee
PIVOT qryrptTherapistAuditNumbers.AuditName;

When I add my date parameter...

Between [Start Date] And [End Date]

....to the underlying query that my crosstab is based on,
qryrptTherapistAuditNumbers, I get the error message below.

The Microsoft jet database engine does not recognize '[startdate]' as a
valid field name or expression.

The crosstab query is perfect but I need to run this query every week and
only have the records from a specific time period, not all the records in
the database. Actually, I only need records that begin at a certain date
and go until today (today being the date I am running the query)

Thanks,
Linda
 
D

Duane Hookom

This question gets asked and answered several times each week in this or the
reports news group. You must specify the data type of all parameters in a
crosstab query. Select Query->Parameters and enter:
[Start Date] Date/Time
[End Date] Date/Time
 
L

LMB

Thanks and sorry about that. Glad you mentioned it though because I have
been meaning to get better at using the search feature to find other
questions similar to what I am asking. I did a search for a "crosstab" in
the subject field of the newsgroup and came up with some other questions
that were the same. Are there any tips anyone can give to search for
questions that may already have the answers to our questions other than what
I did?

It took me a while to find the parameters but once I did, I got it to work.
There sure are about a hundred little things hidden in access for any task!

Thanks so much,
Linda

Duane Hookom said:
This question gets asked and answered several times each week in this or
the reports news group. You must specify the data type of all parameters
in a crosstab query. Select Query->Parameters and enter:
[Start Date] Date/Time
[End Date] Date/Time

--
Duane Hookom
MS Access MVP


LMB said:
Hi Guys,

I am using Access 2000.

I created a crosstab query. The sql is below in case that helps you.

TRANSFORM Max(qryrptTherapistAuditNumbers.CountOfEmpAuditID) AS
MaxOfCountOfEmpAuditID
SELECT qryrptTherapistAuditNumbers.Employee
FROM qryrptTherapistAuditNumbers
GROUP BY qryrptTherapistAuditNumbers.Employee
PIVOT qryrptTherapistAuditNumbers.AuditName;

When I add my date parameter...

Between [Start Date] And [End Date]

...to the underlying query that my crosstab is based on,
qryrptTherapistAuditNumbers, I get the error message below.

The Microsoft jet database engine does not recognize '[startdate]' as a
valid field name or expression.

The crosstab query is perfect but I need to run this query every week and
only have the records from a specific time period, not all the records in
the database. Actually, I only need records that begin at a certain date
and go until today (today being the date I am running the query)

Thanks,
Linda
 
D

Duane Hookom

I use Google Groups advance search. You can enter a group matching
"*access.Queries*" and search for "Does not recognize"

--
Duane Hookom
MS Access MVP


LMB said:
Thanks and sorry about that. Glad you mentioned it though because I have
been meaning to get better at using the search feature to find other
questions similar to what I am asking. I did a search for a "crosstab" in
the subject field of the newsgroup and came up with some other questions
that were the same. Are there any tips anyone can give to search for
questions that may already have the answers to our questions other than
what I did?

It took me a while to find the parameters but once I did, I got it to
work. There sure are about a hundred little things hidden in access for
any task!

Thanks so much,
Linda

Duane Hookom said:
This question gets asked and answered several times each week in this or
the reports news group. You must specify the data type of all parameters
in a crosstab query. Select Query->Parameters and enter:
[Start Date] Date/Time
[End Date] Date/Time

--
Duane Hookom
MS Access MVP


LMB said:
Hi Guys,

I am using Access 2000.

I created a crosstab query. The sql is below in case that helps you.

TRANSFORM Max(qryrptTherapistAuditNumbers.CountOfEmpAuditID) AS
MaxOfCountOfEmpAuditID
SELECT qryrptTherapistAuditNumbers.Employee
FROM qryrptTherapistAuditNumbers
GROUP BY qryrptTherapistAuditNumbers.Employee
PIVOT qryrptTherapistAuditNumbers.AuditName;

When I add my date parameter...

Between [Start Date] And [End Date]

...to the underlying query that my crosstab is based on,
qryrptTherapistAuditNumbers, I get the error message below.

The Microsoft jet database engine does not recognize '[startdate]' as a
valid field name or expression.

The crosstab query is perfect but I need to run this query every week
and only have the records from a specific time period, not all the
records in the database. Actually, I only need records that begin at a
certain date and go until today (today being the date I am running the
query)

Thanks,
Linda
 
L

LMB

Wow! That will be great. I can't access this group at work and always have
to e-mail myself a note to remind myself to ask my question when I get home.
I think I would be able to view these from there. I'll be trying tomorrow.

Thanks a million.

Linda


Duane Hookom said:
I use Google Groups advance search. You can enter a group matching
"*access.Queries*" and search for "Does not recognize"

--
Duane Hookom
MS Access MVP


LMB said:
Thanks and sorry about that. Glad you mentioned it though because I have
been meaning to get better at using the search feature to find other
questions similar to what I am asking. I did a search for a "crosstab"
in the subject field of the newsgroup and came up with some other
questions that were the same. Are there any tips anyone can give to
search for questions that may already have the answers to our questions
other than what I did?

It took me a while to find the parameters but once I did, I got it to
work. There sure are about a hundred little things hidden in access for
any task!

Thanks so much,
Linda

Duane Hookom said:
This question gets asked and answered several times each week in this or
the reports news group. You must specify the data type of all parameters
in a crosstab query. Select Query->Parameters and enter:
[Start Date] Date/Time
[End Date] Date/Time

--
Duane Hookom
MS Access MVP


Hi Guys,

I am using Access 2000.

I created a crosstab query. The sql is below in case that helps you.

TRANSFORM Max(qryrptTherapistAuditNumbers.CountOfEmpAuditID) AS
MaxOfCountOfEmpAuditID
SELECT qryrptTherapistAuditNumbers.Employee
FROM qryrptTherapistAuditNumbers
GROUP BY qryrptTherapistAuditNumbers.Employee
PIVOT qryrptTherapistAuditNumbers.AuditName;

When I add my date parameter...

Between [Start Date] And [End Date]

...to the underlying query that my crosstab is based on,
qryrptTherapistAuditNumbers, I get the error message below.

The Microsoft jet database engine does not recognize '[startdate]' as a
valid field name or expression.

The crosstab query is perfect but I need to run this query every week
and only have the records from a specific time period, not all the
records in the database. Actually, I only need records that begin at a
certain date and go until today (today being the date I am running the
query)

Thanks,
Linda
 

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