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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Image in OLE Object

Status
Not open for further replies.

mans

Programmer
Joined
Mar 18, 2000
Messages
136
Location
AU
Hello,

I am attempting to display an OLE object in Access2000 in an ole object (ole1) on a VB6 form. I have been using the code below and it comes up with error messages stating “Item no found in this collection” or “Type Mismatch” when I run it, can somebody please let me know how I need to change the code to get it to work.

Set rs = daoDB36.OpenRecordset("SELECT DetailsIndex.Surname, DetailsIndex.Image FROM MemberDetails INNER JOIN DetailsIndex ON MemberDetails.Member_ID = DetailsIndex.Member_ID")

Text2 = "" & rs!Surname
Ole1 = "" & rs!image

Thank You
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top