Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert .tiff image on form from database at runtime! 3

Status
Not open for further replies.

moroeh

Programmer
Oct 22, 2001
25
0
0
ES
Hi!

I have a little problem when inserting an image in a form on access2000 (using VBA). I cannot!

The thing is as follows:

I have photos in a folder, and I have a field in my database with the path to each photo. What I need to do is taking the photo and actualize the form when I choose a record and display all the information (including the photo), during runtime.

Thank you!

 
Hi :)

You can write a code "On Current" event of form like this.:

Dim StrPath as String

StrPath=Me.MyfieldName 'field name storing picture path

MyPictute.Picture = StrPath

I hope this will work.

Cheers!
Aqif

 
It worked! Thank you very much!

Cheers!

moroeh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top