GaryCowden
Instructor
Need fast help storing image
I am attempting to store a JPG image in an Access database. I have created a table with a field IMAGE, defined as OLE. When I run the following code:
Adodc1.Recordset.AddNew
Picture1.Picture = LoadPicture("c:\phone.jpg"
Adodc1.Recordset!Image = LoadPicture("c:\phone.jpg"
Adodc1.Recordset.Update
the image loads into the picture box but I get an error
-2147217887
I have also tried to display a picture from the nwind database using a simple bound control, that does not seem to work. what do I need to do to display an image that is store din an access table?
Thanks
I am attempting to store a JPG image in an Access database. I have created a table with a field IMAGE, defined as OLE. When I run the following code:
Adodc1.Recordset.AddNew
Picture1.Picture = LoadPicture("c:\phone.jpg"
Adodc1.Recordset!Image = LoadPicture("c:\phone.jpg"
Adodc1.Recordset.Update
the image loads into the picture box but I get an error
-2147217887
I have also tried to display a picture from the nwind database using a simple bound control, that does not seem to work. what do I need to do to display an image that is store din an access table?
Thanks