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!

How to Access OLE Object from VB

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi,
I have a ole object as datatype for a picture field in MS ACCESS. A picture is stored there. How do I load it on to a picture box in VB. The LoadPicture(recordset!field) syntax does not work.
Please Help.
Thanx


 
rainbow,

you can open the recordset read the field into a variable, and then place it in your picture frame.

Hope This Helps

WebbWill

Past Failures are Guideposts to Future Success
 
But what will be the datatype of the variable.

Is it say,
Dim pic as variant.
pic = rs!picturepath

picture1.picture= loadpicture(pic)

I think
this won't work as the datatype of pic will be the same as the field name.
Can you try it out.
Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top