PC Review


Reply
Thread Tools Rate Thread

crosstab parameterized query

 
 
gator
Guest
Posts: n/a
 
      10th May 2010
PARAMETERS FISCALMO IEEESingle;
SELECT *
FROM [01-GL History Query]
WHERE ((([01-GL History Query].TYPE)=3) AND (([01-GL History Query].YRMODA)
Like "10*"))
ORDER BY [01-GL History Query].AMOUNT;

There is my query where I finally got the parameter fixed where FISCALMO
would prompt for the month. The crosstab isn't picking up the other
"explicitly" stated criteria. For the FISCALMO to work I had to remove the
parameter from the criteria pane in the query "designer" and declare it in
the "Parameters" section from the menu bar. Can a parameter be "explicitly"
stated for a crosstab? If so, how? Or do all criteria for a crosstab need
to be parameterized in the same manner as the FISCALMO?
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      10th May 2010
First create a select query with the parameter defined. Name this query
something and make sure that it works as you expect. Leave off the Order By
as the crosstab won't use it anyway.

Next create a crosstab query using the name query created above as the
record source.

The SQL that you posted doesn't make sense to me as the FISCALMO parameter
isn't used in the Where clause.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"gator" wrote:

> PARAMETERS FISCALMO IEEESingle;
> SELECT *
> FROM [01-GL History Query]
> WHERE ((([01-GL History Query].TYPE)=3) AND (([01-GL History Query].YRMODA)
> Like "10*"))
> ORDER BY [01-GL History Query].AMOUNT;
>
> There is my query where I finally got the parameter fixed where FISCALMO
> would prompt for the month. The crosstab isn't picking up the other
> "explicitly" stated criteria. For the FISCALMO to work I had to remove the
> parameter from the criteria pane in the query "designer" and declare it in
> the "Parameters" section from the menu bar. Can a parameter be "explicitly"
> stated for a crosstab? If so, how? Or do all criteria for a crosstab need
> to be parameterized in the same manner as the FISCALMO?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Reporting based on Parameterized Crosstab Query Josiah Microsoft Access Reports 10 11th Aug 2009 10:27 PM
Forgot Syntax: calling a parameterized constructor of the same class from a non-parameterized one Sathyaish Microsoft C# .NET 5 5th Apr 2007 02:25 PM
Passing a Query to a Parameterized Crosstab Query PEJO Microsoft Access Queries 1 27th Jul 2006 05:21 PM
Crosstab query with criteria, dynamic columns and crosstab report question joshblair Microsoft Access Queries 5 13th Jan 2006 09:34 PM
How can I call Parameterized Query in a query of Access? devel Microsoft Access Queries 3 18th Sep 2003 12:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 PM.