Results 1 to 3 of 3
  1. #1
    cjohnston is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    3

    Adding an image if criteria met

    I have been unsuccessful finding a solution to my seemingly simple request. I have a database which tracks major projects. I would like for an image to display on my data entry form if a text field titled Turned_On has data. If it is blank I do not want the image to show. I believe this should be a relatively simple task, however I am stumped.



    Thank you in advance for any assistance

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    You have whetted some appetites.
    Please show us the code you are trying and what errors/issues you are encountering.


    This site may be useful to you. http://bytes.com/topic/access/answer...ion-date-field

  3. #3
    Estuardo's Avatar
    Estuardo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Portugal
    Posts
    22
    G'd evening!
    As Orange said check that link. Also if you are looking for a little bit different solution, choose the event that will show the image then try something like this
    Code:
    if vba.len(Me.txtYourTextBox)>0 then
     Me.imgYourImageControl.Picture ="c:\yourPicture_1.jpg"
    Else
      Me.imgYourImageControl.Picture ="c:\yourPicture_2.jpg"
    End if
    G'd luck

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

Similar Threads

  1. Replies: 3
    Last Post: 10-25-2011, 11:38 PM
  2. Replies: 2
    Last Post: 10-10-2011, 10:58 AM
  3. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  4. Search By Criteria - Flexible Criteria Fields
    By lilanngel in forum Access
    Replies: 0
    Last Post: 03-16-2011, 06:25 PM
  5. Help - Adding an image to a form
    By graviz in forum Forms
    Replies: 2
    Last Post: 02-16-2010, 08:18 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