Solved

Forcing Crosstab Query to show columns with no data

Posted on 2011-09-27
3
361 Views
Last Modified: 2012-06-27
I'm using a crosstab query to flip data sideways.  But, if a field has no data, then the crosstab doesn't show the "empty" column.

Is there a trick to cause empty columns to show in the query results?

Thanks
0
Comment
Question by:OnsiteSupport
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 36709198
yes, you can force empty column to show, example

hardcoding the pivot columns

pivot [Month] in ("Jan","Feb",........"Dec")


upload a copy of the db..
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36709239
if you have a fixed column names, you can create a table for the column names and use it to produce the empty columns...

see this thread

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21638202.html
0
 

Author Closing Comment

by:OnsiteSupport
ID: 36719799
got it...thanks Cap
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question