Results 1 to 5 of 5
  1. #1
    duece7 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

    Do not display box if no image pulled in

    Hello,



    I have a subreport built into one of my footers on a report that pulls in comments (if there are any). It's pulling in the comments fine the problem is, if there are no comments to pull in it's still displaying the box that it would have pulled them into if there were. How do I tell access to not display the box if there is no image that's pulled in?

    The first image shows the box with no image and the second image shows an image pulled in.


    Click image for larger version. 

Name:	Capture2.PNG 
Views:	7 
Size:	1.7 KB 
ID:	23016Click image for larger version. 

Name:	Capture3.PNG 
Views:	7 
Size:	8.1 KB 
ID:	23017

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Comments are saved as image files?
    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.

  3. #3
    duece7 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8
    Yes, more info might help. We have surveys that we receive from customers and those surveys are scanned into a database. All of the selections 1-10 etc are stored automatically but in the comments field the are stored as the image file name for example it would only show image1.tif. In the report we have built it to go out to the folder where the image files are stored and retrieve them for the corresponding question in the survey. There are some questions however, that do not have comments but those questions are still displaying the image box on the report. We don't know upfront which questions will or will not have comments as it's different each time so we have set up just to look for them and display if there.

    Any way to not display the boxes if there is no image?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    You can run code that sets as not visible but the control still occupies space and that will be evident on the report. Unless code can also set the box Height to zero and then records will 'close up' to remove the white space. This code would have to be in the OnFormat event and that event only runs for PrintPreview or direct to printer.

    Better might be to have an alternate "No comments." image display.
    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.

  5. #5
    duece7 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8
    good idea, thanks for the help.

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

Similar Threads

  1. display image if checkbox is checked
    By Casey Sanders in forum Reports
    Replies: 5
    Last Post: 04-03-2013, 04:49 PM
  2. Select a record and display an image
    By Chris G in forum Forms
    Replies: 5
    Last Post: 11-01-2012, 04:38 PM
  3. Image controls fail to display
    By GraeagleBill in forum Reports
    Replies: 5
    Last Post: 09-06-2012, 12:28 PM
  4. Problems with image display, please help
    By lherndon in forum Forms
    Replies: 2
    Last Post: 04-20-2012, 12:42 PM
  5. Have an interesting image display question.
    By mike_art03a in forum Forms
    Replies: 6
    Last Post: 11-05-2011, 12:13 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