Results 1 to 5 of 5
  1. #1
    Jayessh is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2020
    Posts
    1

    AutoHide Column in Report

    I am making a Database for Payroll, I have a Report SalarySheet and I need a Column Say Bonus, but The Column Bonus will have values in only Once in a Year. i.e. it will have value in only for one Months Salary Sheet Rest 11 months it will remain empty and unnecessarily occupy space.



    I need a Column which will auto hide with his Lable (Tile of the Field) when it has Zero in all the month and will show only when it has some value in any record

    My Report is Tabular Format
    Grouped
    and based on Query

    I ma using MS Access 2007

    Try to give solutions in Expression Builder, codes are so complicated, even if not possible Code will done

    Please give me some hint or solutions

    Thanks in Advance as I know all your guys are experts of Access

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    set the design property of the rpt, set txtbox.visible =false
    then when it has a value it will become visible.

    in the detail ON PRINT event:

    on error resume next
    txtBox.visible = txtbox > 0

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    With 16 posts no less as well.?

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Quote Originally Posted by Welshgasman View Post
    With 16 posts no less as well.?
    Judging from the comments in post# 16 it's not going too well
    I don't think I'll get involved
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 4
    Last Post: 08-03-2017, 04:40 PM
  2. Create a 4 Column Report from a 2 column data
    By trident in forum Reports
    Replies: 4
    Last Post: 01-19-2017, 11:50 AM
  3. Column as Row in a report
    By MrDummy in forum Reports
    Replies: 3
    Last Post: 03-01-2016, 02:08 PM
  4. Replies: 4
    Last Post: 09-05-2014, 02:00 PM
  5. Divide a column by another Column in a Report?
    By taimysho0 in forum Reports
    Replies: 2
    Last Post: 01-06-2012, 06:25 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