Picture from Access 2k table to VB form - TechRepublic
General discussion
October 25, 2001 at 09:52 AM
afisher

Picture from Access 2k table to VB form

by afisher . Updated 24 years, 8 months ago

Picture from Access table to VB form
I have an Access 2000 table column set to the OLE Object datatype in which I am storing jpeg images. I am attempting to display said images on a vb form. When I retrieve a record from my access database I storethe record in a variant-type array. The elements of the array are exposed through property procedures that my form uses to access the data, which is then assigned to the form’s controls. When I attempt to assign the property containing the image to the picture property of a picture box control, I get a type mismatch error. How exactly do I display a picture on a form using ado rather than the loadpicture method or referring to the picture property of another control?

This discussion is locked

All Comments