Results 1 to 5 of 5
  1. #1
    jaykappy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2009
    Posts
    59

    refresh image on form

    I have a form that has a combobox....based on the selection if opens a subform with the info...

    Say combobox is changed to Mary, Marys info is displayed in the subform....this works fine.


    But in the Subform there is a picture that is referencing a field in the table.

    I cant figure out how to refresh the picture box when the the combobox changes ...

    In the Subform there is:
    A Picture box = "Pickup1"
    A Textbox with the path (c:\Temp\Images\name.jpg) = "PickupImage1"

    I am using AfterUpdate on the combobox and trying to refresh the picture box but getting errors....

    Me.[Forms]![frm_V4_MainForm]![frm_V4_PersonalInfo].Pickup1 = Me.[Form]![frm_V4_MainForm]![frm_V4_PersonalInfo].Pickup1Image.Text

    NOT WORKING...

    Thougths?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Have you tried to Requery rather than Refresh?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    jaykappy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2009
    Posts
    59
    Like this?

    Me.[Forms]![frm_V4_MainForm]![frm_V4_PersonalInfo].Pickup1.Requery

    Main Form = frm_V4_MainForm
    Sub Form = frm_V4_PersonalInfo
    Picture Box = Pickup1

  4. #4
    jaykappy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2009
    Posts
    59
    So from the Combobox AfterUpdate....I tried these and all error out

    The combobox is on the frm_V4_MainForm and the Picture Box is in the subform (on the main form)....thougth I would have to walk down the forms into the subform

    Me.[Forms]![frm_V4_MainForm]![frm_V4_PersonalInfo].Pickup1.Requery

    Me.Form.frm_V4_MainForm.frm_V4_PersonalInfo.Pickup 1.Requery

    Me.frm_V4_MainForm.frm_V4_PersonalInfo.Pickup1.Req uery

    Me.frm_V4_PersonalInfo.Pickup1.Requery

  5. #5
    jaykappy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2009
    Posts
    59
    Think I got it...I did not have the Control Source of the Pictures set...I set them adn did a refresh and it worked....thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 01-24-2012, 03:47 PM
  2. Replies: 2
    Last Post: 10-10-2011, 10:58 AM
  3. Access 2010 Refresh VS Refresh ALL
    By Snwboarder1982 in forum Access
    Replies: 1
    Last Post: 09-09-2011, 04:07 PM
  4. Refresh Form
    By tpcervelo in forum Forms
    Replies: 7
    Last Post: 02-07-2011, 08:03 AM
  5. refresh a form
    By RedGoneWILD in forum Forms
    Replies: 18
    Last Post: 09-03-2010, 08:31 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