Results 1 to 4 of 4
  1. #1
    access_db_user is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    2

    How to hide data on my report

    Hi All,



    A previous developer has created a report within an MS Access database and the new requirement is to hide the data/rows from the report if the field has a value of 100%.
    The value for this field is coming from a column within a SQL server table.

    The name of this column is "Percentage" and the Data tab in the Property Sheet has Control Source = Percentage

    Can anyone help me in the formula to suppress the 100% in case Percentage = 100?

    Thanks!

  2. #2
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    The report should be based on a query, not the table itself, for this very type of reason. Your query would limit the records returned where the Percentage is less than 100. AFAIK, percentage is not a problem/reserved word, but I would not use percent. Suggest you replicate the table fields you need with a query. Note: you would not be hiding the rows - you would not be bringing them back. If hiding is what you MUST do, I'm not sure that's possible, even if using code for the report format section On_Format event or format.property.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    As Micron points out, records are filtered, not 'hidden'. Hiding rows is an Excel feature.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    access_db_user is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    2
    Hi Guys,

    Thank you for the response, Actually i had misstated my problem earlier and the report source is in-fact a query within a SQL server database. I was able to filter out all the values that had 100% by using a Where clause in the Record source.

    Thanks again!

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

Similar Threads

  1. Replies: 6
    Last Post: 12-14-2015, 03:25 PM
  2. Hide fields that don't have value in a Report
    By Vandacardoso in forum Reports
    Replies: 15
    Last Post: 05-11-2015, 04:18 AM
  3. Hide an attachment in a report
    By FJM in forum Reports
    Replies: 12
    Last Post: 10-10-2014, 12:17 AM
  4. Hide data
    By Rustman in forum Access
    Replies: 1
    Last Post: 03-25-2013, 02:54 PM
  5. Hide Report after Opening?
    By Heatshiver in forum Reports
    Replies: 4
    Last Post: 04-06-2012, 12:26 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