Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6990695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:23:23+00:00 2026-05-27T19:23:23+00:00

Short version: How do I create the <> column manually? Long version: In Access

  • 0

Short version:
How do I create the “<>” column manually?

Long version:
In Access 2003, I’ve got a table which contains integer values from 1-5, which can also be undefined. When I create a pivot table query on that column, the wizard builds me a table with 6 columns, labeled 1-5 and the first one “<>”, which counts the number of undefined values. This is just the result I need, except for the problem that if the original data misses a certain value (e.g. no record has the value ‘5’), that column is missing in the crosstable. This breaks my report. As I learnt, the normal way to solve this is to set the column headings manually (either via the properties -> column headings dialog or with the IN clause of the PIVOT statement), so that empty columns may result. Unfortunately I have no idea what name the column for the undefined values takes?

OFC there may be another solution for my basic problem, so alternately I’m happy on hints how to create my report so that it can take its data from a query with a varying number of cols, I only know that Nz() is not the solution in this case.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:23:24+00:00Added an answer on May 27, 2026 at 7:23 pm

    How about:

    TRANSFORM Count(t.ID) AS CountOfID
    SELECT t.ARowVal
    FROM t
    GROUP BY t.ARowVal
    PIVOT t.AColVal In (Null,1,2,3,4,5);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short version: How can I map two columns from table A and B if
Short Version: When I've created a Channel using ChannelFactory on a client which uses
Short version: assuming I don't want to keep the data for long, how do
Short version of the question: If you have a table with a large number
I have a DataGridView which is bound to a DataTable that contains a column
Short version: Can a COM class modify its own virtual table entries at runtime?
Short version: Is it possible in NHibernate to create a mapping for a class
For Example if I Create array of object And assing data... short version of
Short Version: If I create a System.Web.HttpException as follows: var exception = new HttpException(403,
Short version: I want to trigger the Form_Load() event without making the form visible.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.