Results 1 to 7 of 7
  1. #1
    Teresa is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2018
    Posts
    2

    Question how to hide some information in a report


    in a donor database I want to make reports, but leave out addresses if they don't want to be acknowledged. Can't figure out how to only hide those particular addresses. Or do I have to start all over and delete those addresses from the database altogether? That would be unbelievable! Help!!

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    dont put the address in the report.
    in the query, put only the fields you want shown.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,924
    You want to show some addresses? Need a field in db that indicates whether or not to show (can be a Y/N field). Then use expression in query or textbox:

    IIf([Show], [Address], Null)
    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
    Teresa is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2018
    Posts
    2
    June7,
    Thanks for reply. I have a checkmark field in the database for when donor requests acknowledgement. Would I need another field? And where would I use this expression IIf([Show], [Address], Null) in the query?

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,924
    Why would you need another field? Sounds like the 'checkmark' field would be the [Show] field in my example. The expression can go in query or textbox.
    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.

  6. #6
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    yes, a chkShowAddr box would render the address subreport invisible.

    Code:
    sub On_Print()
    subRpt.visible = chkShowAddr.value
    end sub

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,924
    Yes, can use VBA but I try to avoid VBA behind report.
    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.

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

Similar Threads

  1. Hide Duplicates in a report
    By WAVP375 in forum Access
    Replies: 7
    Last Post: 08-06-2015, 09:50 AM
  2. Replies: 3
    Last Post: 05-02-2014, 09:27 AM
  3. Replies: 2
    Last Post: 02-20-2014, 06:51 PM
  4. Hide Rows in a Report
    By alpha in forum Reports
    Replies: 2
    Last Post: 01-25-2012, 01:27 PM
  5. Hide/Minimize Information
    By DreamOn in forum Forms
    Replies: 2
    Last Post: 09-02-2010, 09:08 AM

Tags for this Thread

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