Advertisement

09.11.2007 at 10:41AM PDT, ID: 22821162
[x]
Attachment Details

Parameters for Crosstab Query

Asked by Ludique in Microsoft Access Database, SQL Query Syntax

Tags: , ,

I have a query called qryPolicies which in the field DateSubmitted has the criteria:
Between [Enter Start Date] And [Enter End Date]

I'd like to use this query as the basis for several crosstab queries which count the number of policies between the dates entered according to eg. No of Policies per Product/Product Type or Provider/Product.

If there is no criteria in qryPolicies it works beautifully.  If there is I get the message "The Microsoft Jet database engine does not recognise '[Enter Start Date]' as a valid field name or expression.

I've read solutions on EE for entering query parameters but the solutions I've found seem to only deal with a single entry into the field ie. one date, not two like this.

So how do I go about it?Start Free Trial
 
 
[+][-]09.11.2007 at 10:43AM PDT, ID: 19870576

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2007 at 10:48AM PDT, ID: 19870606

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2007 at 11:00AM PDT, ID: 19870720

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.11.2007 at 11:00AM PDT, ID: 19870722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2007 at 11:20AM PDT, ID: 19870897

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: crosstab, query, date
Sign Up Now!
Solution Provided By: dqmq
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.11.2007 at 11:57AM PDT, ID: 19871229

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628