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  

Table list in CrossTab Pivot statement



 
 
Thread Tools Display Modes
  #1  
Old February 8th, 2007, 05:18 PM posted to microsoft.public.access.queries
Biggles
external usenet poster
 
Posts: 10
Default Table list in CrossTab Pivot statement

There might be an eaiser way to do this, but I am in a hurry and have
existing queries I need to fix.

I have a crosstab query where the column headings are derived from a table.
I would rather not have to type in all the values of that table into the IN
clause(although there are only 10 or so), since those values might change.
Is it possible to use that as a source for the IN statement of the PIVOT
clause of my crosstab?

Thanks
--
Fictionally Yours, Biggles
  #2  
Old February 8th, 2007, 11:08 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Table list in CrossTab Pivot statement

"Is it possible to use that" what do you mean by "that"? You can't use a
table or select statement in the IN () clause of a crosstab query. You can
use DAO code to dynamically build your SQL statement and apply it to the
saved crosstab QueryDef.
--
Duane Hookom
Microsoft Access MVP


"Biggles" wrote:

There might be an eaiser way to do this, but I am in a hurry and have
existing queries I need to fix.

I have a crosstab query where the column headings are derived from a table.
I would rather not have to type in all the values of that table into the IN
clause(although there are only 10 or so), since those values might change.
Is it possible to use that as a source for the IN statement of the PIVOT
clause of my crosstab?

Thanks
--
Fictionally Yours, Biggles

 




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 02:42 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.