Results 1 to 2 of 2
  1. #1
    Rob123 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2019
    Posts
    3

    Crosstab query in subform does not hide blank columns

    Hi,



    Due to the fact that Pivot Tables are no longer on newer versions of Access, I have converted my Pivot Table to crosstab queries based on prior valued advice given. The crosstab queries does indeed make my life a bit simpler, and easier to create a neat dashboard on an form, however it also show names of subordinates who no longer report directly to me. I was guided via a video tutorial to add all the names in the Column Heading properties field in the query design, due to the fact that the form does not work if it is not done. I do not want to manually enter and delete names each time out of this field i design view, as it might be that they will report back to me at a later stage.

    Is there an easier way to handle this problem, so that my dashboard exclude the names automatically if there is no data.

    As I understand, and experienced first hand, the crosstab query cannot be added to a form if the Column Heading properties field is not completed. I want to use a form, as I have combo boxes, which I use to filter and display the results of the crosstab query in a subform with the upon click (requery) event.

    The attached .png images is the problem I am referring to.

    I am open to any other alternatives as well, however VBA knowledge is extremely limited.

    Kind regards,

    Rob123

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    Not being privy to the other advice you were given I have to wonder why you need to see this in a spreadsheet format when you're working in a db? It's that sort of thinking that gets you into these situations. Having to redesign forms and reports to include/exclude fields on an on-going basis just seems wrong to me. Why can't names go vertically with the numbers beside them?
    handle this problem, so that my dashboard exclude the names automatically if there is no data
    This is exactly what I'm saying, and is how a database should work whenever possible. If your form is based on a query that excludes names you don't want, then voilą - you get what your question asks for.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Hide / View columns in Subform
    By Alex Motilal in forum Forms
    Replies: 4
    Last Post: 06-24-2018, 09:45 PM
  2. CrossTab Query - Blank Values
    By bullwinkle55423 in forum Queries
    Replies: 4
    Last Post: 07-17-2013, 01:59 PM
  3. count blank colums in crosstab query
    By survivo01 in forum Queries
    Replies: 6
    Last Post: 04-13-2012, 01:37 PM
  4. Calculating columns in crosstab query
    By GraemeG in forum Queries
    Replies: 11
    Last Post: 06-05-2011, 06:43 PM
  5. Show/Hide Columns in a Query
    By SCFM in forum Access
    Replies: 1
    Last Post: 02-23-2010, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums