PDA

Click to See Complete Forum and Search --> : Bitmap in MS Access database


FaberX
Jun 8th, 1999, 04:47 PM
I need add a bitmap into a MS Access database (ver. 7.0) but the vbBinary format is not valid.
How do I add a picture into a record???

NMahon
Jun 13th, 1999, 07:44 PM
Had similar problem.

Gave up!

In the end elected to store a string of path and file name of image in table. Then used the LoadPicture("path\filename") method to set image.

V.Suresh
Jun 15th, 1999, 06:23 PM
I have done this storing picture into MS-Access, I hope this would be helpful to you.

creat a OLE1 control into the form.

and create a Command button.

then include

Private Sub Command1_Click()
OLE1.InsertObjDlg
End Sub

Include Datacontrol to the form.

Assume the name Data1

and the Access database has a got field for BITMAP image named "PHOTO" which is of datatype OLE Object

then in the properties of Datacontrol

OLE1.Datasoure = Data1
OLE1.Datafield = PHOTO

Serge
Jun 17th, 1999, 02:57 PM
You have to create field not with Binary but with OLE Object data type.

Best regards,


------------------

Serge

Serge_Dymkov@vertexinc.com
Access8484@aol.com
If you have any questions about AOL programming, e-mail me