Results 1 to 4 of 4
  1. #1
    Alaska1 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    55

    Suppress Data Field if Blank

    I have a data field in an Access Report. Some records have data for this field some don't. I want to display the field when it has data and suppress when null. I am not sure what formula to use.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    a null value would be the same as suppressing, you cant see either of them.
    but in ON PRINT event
    txtBox.visible = not IsNull(txtbox)

  3. #3
    Alaska1 is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Oct 2010
    Posts
    55
    Hello, Thank you for your response. I do not see the on print event for that Field. this is just a sample attached.
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Textbox does not have OnPrint event. Report sections have OnPrint event. Or use OnFormat event for the section the textbox is in.

    But as ranman said, really doesn't make much sense to do this.
    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. Suppress Blank row in a continuous form
    By dgmdvm in forum Forms
    Replies: 3
    Last Post: 09-23-2017, 11:23 PM
  2. Replace Data Where Field is not blank
    By tcheck in forum Programming
    Replies: 2
    Last Post: 10-31-2016, 10:37 AM
  3. Replies: 3
    Last Post: 07-30-2013, 12:11 PM
  4. Querying All Data When Form Field Is Blank
    By jre1229 in forum Queries
    Replies: 25
    Last Post: 08-22-2012, 11:32 AM
  5. Copy data into a blank field
    By winterh in forum Database Design
    Replies: 2
    Last Post: 04-16-2012, 04:57 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