If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Refresh images on access form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-03, 11:41
jrl jrl is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Refresh images on access form

Small irritating problem I'm having in Access / VBA:

I have a form that has a small image control on it. The user can click a button next to the image to get a file selector dialog box.

After selecting an image, its path is stored in the associated table, via a hidden field on the form.

The image control is linked via code (it isn't bound) to the filepath in the table. The file that the image control points to is updated in the after update code of the hidden text box.

The problem is that the image only updates after I do a "next, previous" on the record navigation control.

How would I get the image to refresh immediately after the user selects a file in the dialog box?

The problem is not OS related. I've tried putting in DoEvents in various places and it makes no difference. I've also tried refreshing the form from the recordset, but still no joy.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On