Results 1 to 4 of 4
  1. #1
    whitechair is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2012
    Posts
    2

    Image on a continuous form that changes pr record

    I have two images on a record on the detail section of a continuous form. I would like to have one image visible when textbox1 is greater than textbox2 and another showing when it is not. I would like this to depend on the record, so one record in the form may show this image and the next record would show the other depending on the values of the textboxes. Is there a way to do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Don't know any way to do this on a continuous form, a report yes, form no.

    You could use Conditional Formatting to set colors of textbox depending on the criteria.
    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
    whitechair is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2012
    Posts
    2
    I heard about someone who set up a link to the images on a network and then had an image control look up the link. But I don't really want to worry about people having access to the correct path or naming their drives differently. Any other suggestions?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Sorry, that is one possibility.
    I just tried using UNC referencing for file path and that worked
    UNC (universal naming convention) syntax is: "\\servername\path\filename"

    Could also try this:
    A table with a single record and two attachment fields, one for each image (Image1, Image2). Include this table in form RecordSource without a JOIN clause, this will cause the Image record to associate with every record in the parent table. Conditional statement in Image control ControlSource property:
    =IIf(textbox1>textbox2, [Image1], [Image2])
    Not tested, just a brainstorm, let me know if it works.
    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. Delete continuous form record
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 03-09-2012, 03:00 PM
  2. VBA delete current record continuous form
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 02-17-2012, 12:57 PM
  3. Hiding a new record in a continuous form
    By system243trd in forum Forms
    Replies: 3
    Last Post: 12-03-2011, 01:04 AM
  4. Replies: 13
    Last Post: 11-08-2011, 11:57 AM
  5. Get position of record in continuous form
    By Whizbang in forum Forms
    Replies: 3
    Last Post: 11-02-2011, 01:47 PM

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