Results 1 to 5 of 5
  1. #1
    joseinazusa is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    3

    Change Image via Macro Designer Access 2010

    I am have an Image Control call Gauge



    I need to know how to change the Picture value of the Gauge Control using the Macro Designer, IE: change from image2.jpg to image1.jpg or image3.jpg

    I tried set property

    (Set Property)
    Gauge.Picture
    Value
    image2.jpg

    Just not sure who to use the Macro Designer to change the image.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I don't know that macros can change properties.

    Is this an Image control or an OLEObject control?

    Where are the images? Are they in Attachment field or external?

    If external need the file folder path.

    I find it easier to use an Image control and dynamically set its ControlSource property.
    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
    joseinazusa is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    3
    It is a Image control. Images are in the same folder as the access file,

    That is the question.

    How could I change the ControlSource Property using the Macro Designer?

    Thank you.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You have only the 3 images? What condition determines which image should display?

    As stated, I don't know that macros can change properties. I use only VBA. However, with the ControlSource property of Image control, neither code method might be required.
    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
    joseinazusa is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    3
    I think I just found the limitation of the Macro Designer. Just using VBA Code was easier.

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

Similar Threads

  1. Insert Image in Access 2010 ???
    By cowboy in forum Access
    Replies: 5
    Last Post: 03-18-2014, 08:22 AM
  2. MS Access 2010 capture webcam image
    By rydalplace in forum Programming
    Replies: 5
    Last Post: 01-27-2014, 05:09 AM
  3. Replies: 6
    Last Post: 09-19-2012, 02:32 PM
  4. Controls for OLE Image Access 2010
    By Mnelson in forum Access
    Replies: 1
    Last Post: 07-10-2012, 06:19 PM
  5. Replies: 1
    Last Post: 01-05-2012, 02:34 PM

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