• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Forcing Crosstab Query to show columns with no data

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
OnsiteSupport
Asked:
OnsiteSupport
  • 2
1 Solution
 
Rey Obrero (Capricorn1)Commented:
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
 
Rey Obrero (Capricorn1)Commented:
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
 
OnsiteSupportAuthor Commented:
got it...thanks Cap
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now