Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2024
    Posts
    1

    Post How do I program a report so if nothing is entered in a text box it is made invisible when printed.

    In my report I have a section where I list standards I have used in the report. There is room for 5 instruments to be listed. If I only used one instrument, I would like the remaining 4 blank lines to be made invisible when printed.

    Standards Used


    Instrument

    The 4 lines that don't have anything in them should be eliminated.

    Standards Used
    Instrument

    Thank you,
    Ron Cangro

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Make this field a subreport (page header has title and field in Body as continuous form). Add it to your main report and in property sheet of the object, select Can Grow"Yes" and Can Shrink "Yes". See if that works, it did on my testing. Just remember though that any other objects you have on the report below this subreport will be moved around depending on how much that box shrinks or grows. If you have the room, might just want to show all 5 lines.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why would there even be blank lines? Each instrument is a field instead of a record?
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Do not have then in the source in the first place.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 06-05-2023, 09:24 AM
  2. Replies: 1
    Last Post: 02-11-2019, 08:54 PM
  3. Replies: 6
    Last Post: 03-14-2018, 11:12 AM
  4. Replies: 5
    Last Post: 04-16-2015, 12:53 PM
  5. program a text box in a report!
    By NateHaze in forum Programming
    Replies: 1
    Last Post: 06-07-2011, 05:55 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