Results 1 to 4 of 4
  1. #1
    akapag22 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    20

    Check For Empty Image Of Image Control In Continous Form

    Hi friends,




    I am using a continous form and using an image control in it.
    For records which have jpg file, the image loads up good. But for records which have .xlsx the dont show up.
    Hence i would like to put a text "excel file" on the image control by checking if its xlsx extension.


    How can i do it for all records in continous form? Thank u

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you cant on continous forms.
    The ONLY way would be to run an update query to fill the image field with an excel X, where instr([file],".xls") > 0

    in continuous forms, ALL records must look at the same field. no if then

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe you could create an image that is the text you wish to display. Give the image an unique name. Then, create an alias in a query and bind your form to the query. In your alias, you can employ an Inline If Statement.

    something like ...
    If [OriginalField] LIKE *.xls then
    [AlaisField] = "myPicture.jpg"
    Else
    [AlaisField] = [OriginalField]

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Are these images in a table or external?

    Image control ControlSource property can have an IIf() expression.
    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. Active Control on Image
    By LonghronJ in forum Modules
    Replies: 12
    Last Post: 07-15-2015, 03:57 PM
  2. zoom control for image on form
    By oldtiredjeffro in forum Forms
    Replies: 7
    Last Post: 10-20-2014, 03:30 PM
  3. Replies: 5
    Last Post: 02-06-2014, 09:10 AM
  4. SetFocus on Image Control??
    By tylerg11 in forum Forms
    Replies: 1
    Last Post: 07-21-2012, 03:32 PM
  5. Replies: 2
    Last Post: 10-10-2011, 10:58 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