Results 1 to 7 of 7
  1. #1
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22

    Hide colum when all values = 0 without VBA? its possible?

    Hi, i have a query that produces 35 columns(they rappresent different types of sold contracts), i would like to hide the columns that have all the values = 0 wich are always like 25-30 columns... is that possible? i know i can hide them manually but is possible to do it in automatic? maybe in the properties or something?

  2. #2
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22
    For example from:

    Code:
           2.0A 2.1A 3.0A 
    Me       1    1     0
    You      1    1     0
    to

    Code:
           2.0A 2.1A 
    Me      1    1      
    You     1    1

  3. #3
    David04845 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    16
    if you make it a cross tab you can put a >0 in the condition.

  4. #4
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22
    but if i make the condition > 0 it will delete all the rows witha > 0 value, for example if the colum is like this

    0
    0
    0
    0
    0
    1

    the entire column should be keeped...

  5. #5
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22
    nobody?

  6. #6
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Not in a query. Maybe in a report you could use the on format event to sum each of the 35 fields and the onprint event to suppress those fields that the sum = 0 but I don't know of anyother way to do it.

  7. #7
    Aragan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    22
    ok , thx U_U

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

Similar Threads

  1. Sum Negative Numbers In Colum
    By geraldselectric in forum Access
    Replies: 1
    Last Post: 01-16-2012, 03:42 PM
  2. Hide Fields With Null Values
    By jay in forum Reports
    Replies: 6
    Last Post: 09-22-2011, 07:23 AM
  3. Replies: 1
    Last Post: 03-27-2010, 06:13 AM
  4. Replies: 2
    Last Post: 01-13-2010, 05:29 AM
  5. Row and colum color editing
    By jerald in forum Database Design
    Replies: 0
    Last Post: 03-18-2009, 05:52 PM

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