Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Forcing Crosstab Query to show columns with no data

Posted on 2011-09-27
3
Medium Priority
?
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

722 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