|
-
Jun 8th, 1999, 04:47 PM
#1
Thread Starter
New Member
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???
-
Jun 13th, 1999, 07:44 PM
#2
New Member
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.
-
Jun 15th, 1999, 06:23 PM
#3
New Member
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
-
Jun 17th, 1999, 02:57 PM
#4
You have to create field not with Binary but with OLE Object data type.
Best regards,
------------------
Serge
[email protected]
[email protected]
If you have any questions about AOL programming, e-mail me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|