Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 12: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

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