A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

crosstab parameterized query



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2010, 07:30 PM posted to microsoft.public.access.queries
gator
external usenet poster
 
Posts: 166
Default crosstab parameterized query

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?
  #2  
Old May 10th, 2010, 08:59 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default crosstab parameterized query

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?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.