Link to home
Start Free TrialLog in
Avatar of thomasmurray
thomasmurray

asked on

Programmatically embed object into Access Table with VB6

I am creating a VB6 appliation that logs live data and inserts it into a Access table.  This database also has a main table that contains pertinanent information to the test being run.  This main table has to contain an embedded word object inserted at runtime of the VB6 application.
Any suggestions?

Thanks in advance

Tom
Avatar of thomasmurray
thomasmurray

ASKER

anyone?
What control are you using to display the Word object?  Are you creating the Word object on the fly and then storing it?  (There's a bunch more I could ask...)

You'll want to set the data type for the field on the Access table to 'OLE Object' and use the ADO '.AppendChunk' and '.GetChunk' methods to write/read the data, if your form control doesn't support OLE DB.  I might be able to be a bit more specific, if you can provide a bit more on the structure of your program.

Hope this helps,
Landy

Also, you might want to do a Search on "Access Word OLE Object" -- you'll find a lot of PAQs dealing with your issue.
I am not using any control to display the word object.  

Also I tried to use the appendchunk and getchunk methods, but they append 'Long binary Data'

What i want to do programmatically is the same as if you were to do the following while in access:

Click on an existing cell in table view whose datatype is an OLE object.

Then right-click on the cell and go down to insert object.

Hope this clears up the question

Tom

PS  Thanks for the response
Also I don't want to create a form, I want to be able to embed this document directly into the table

tom
ASKER CERTIFIED SOLUTION
Avatar of LandyJ
LandyJ
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh OK
I will close this thread now.
Could you please try to answer me on the other post.

Thanks

PS Why do I have to request a refund for the points. What do the points do?
hello?
If you don't have points, you can't ask questions.  You earn points by becoming a subscribing member or answering questions and receiving points from the asker.

moving to the other question...