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 Column Headings



 
 
Thread Tools Display Modes
  #1  
Old July 10th, 2008, 09:21 PM posted to microsoft.public.access.queries
Movies Man
external usenet poster
 
Posts: 1
Default Crosstab Column Headings

None of the Field Names are showing up as column headings for my crosstab
query.

Here is my SQL:

TRANSFORM Avg(dbo_tblTranCHECK.DISC_PRINT) AS AvgOfDISC_PRINT
SELECT dbo_tblTranCHECK.UNITNUM
FROM dbo_tblNameDSC INNER JOIN dbo_tblTranCHECK ON (dbo_tblNameDSC.CODE =
dbo_tblTranCHECK.DISC_TYPE) AND (dbo_tblNameDSC.UNITNUM =
dbo_tblTranCHECK.UNITNUM)
WHERE (((dbo_tblNameDSC.CODE)0) AND
((dbo_tblTranCHECK.SALESDATE)=#6/27/2008# And
(dbo_tblTranCHECK.SALESDATE)=#7/31/2008#))
GROUP BY dbo_tblTranCHECK.UNITNUM
PIVOT dbo_tblNameDSC.NAME;

All Fields show up, but the heading for each one is "Avg Comp".

I've tried listing the Field Names using the IN[] statement, but the same
thing happens. It will list the different categories, but the heading still
shows up as "Avg Comp".

Please help!


  #2  
Old July 10th, 2008, 11:50 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Crosstab Column Headings

Post some sample data from the tables.
--
KARL DEWEY
Build a little - Test a little


"Movies Man" wrote:

None of the Field Names are showing up as column headings for my crosstab
query.

Here is my SQL:

TRANSFORM Avg(dbo_tblTranCHECK.DISC_PRINT) AS AvgOfDISC_PRINT
SELECT dbo_tblTranCHECK.UNITNUM
FROM dbo_tblNameDSC INNER JOIN dbo_tblTranCHECK ON (dbo_tblNameDSC.CODE =
dbo_tblTranCHECK.DISC_TYPE) AND (dbo_tblNameDSC.UNITNUM =
dbo_tblTranCHECK.UNITNUM)
WHERE (((dbo_tblNameDSC.CODE)0) AND
((dbo_tblTranCHECK.SALESDATE)=#6/27/2008# And
(dbo_tblTranCHECK.SALESDATE)=#7/31/2008#))
GROUP BY dbo_tblTranCHECK.UNITNUM
PIVOT dbo_tblNameDSC.NAME;

All Fields show up, but the heading for each one is "Avg Comp".

I've tried listing the Field Names using the IN[] statement, but the same
thing happens. It will list the different categories, but the heading still
shows up as "Avg Comp".

Please help!


 




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 07:07 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.