Results 1 to 5 of 5

Refresh form event.

  1. #1
    Join Date
    Jun 2015
    Posts
    658

    Refresh form event.

    This is just an exercise for my own amusement more than anything.



    I have a picture on a form which will change on the change event of a combo box.

    But... there is like a flash on the screen when the image changes. Or even if the image doesn't change.

    I want to stop that from happening. I'm open to suggestions. If there was any possibility to "phase" in and out I don't know.

    alternately.... to at least stop the refresh if the data is the same.. I could make the value a variable. Then do some VBA to compare the older data to the new.. If its the same then do nothing,.

    So assuming the second option is my only one. How would I compare a variable to itself.... before change?

    hopefully that makes sense haha.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    16,188
    You can use the before update event and test the Value property against the OldValue property.
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2015
    Posts
    658
    Okay, I shall have a go at this tomorrow. Thanks for the advice.

    Out of interest have you ever seen a way to phase an image in?

  4. #4
    Ajax is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    4,156
    Out of interest have you ever seen a way to phase an image in?
    never tried it, but in theory it can be done using an unbound object frame and powerpoint - then set the transitions as you require - see this link

    https://msdn.microsoft.com/en-us/lib...ffice.11).aspx

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    16,188
    No problem, and no I haven't. I don't work much with images though, so my not seeing it doesn't mean much.
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 01-26-2015, 01:11 PM
  2. Replies: 7
    Last Post: 05-08-2014, 09:34 AM
  3. Replies: 1
    Last Post: 03-29-2014, 06:46 PM
  4. Help with Onclick event to refresh textbox.
    By mikeone610 in forum Access
    Replies: 3
    Last Post: 02-07-2013, 02:58 PM
  5. AfterUpdate event won't refresh subform!
    By Remster in forum Forms
    Replies: 16
    Last Post: 11-26-2010, 09:06 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
  •  
Tech Forums: Microsoft Office Forums