[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Programmatically embed object into Access Table with VB6

Posted on 2004-09-17
9
Medium Priority
?
1,022 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:thomasmurray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 

Author Comment

by:thomasmurray
ID: 12086950
anyone?
0
 
LVL 7

Expert Comment

by:LandyJ
ID: 12087168
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

0
 
LVL 7

Expert Comment

by:LandyJ
ID: 12087212
Also, you might want to do a Search on "Access Word OLE Object" -- you'll find a lot of PAQs dealing with your issue.
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:thomasmurray
ID: 12087351
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
0
 

Author Comment

by:thomasmurray
ID: 12087365
Also I don't want to create a form, I want to be able to embed this document directly into the table

tom
0
 
LVL 7

Accepted Solution

by:
LandyJ earned 2000 total points
ID: 12087508
Tom,

See your other question in VB Databses about cross-posting.  Please close one of them and direct responses to the survivor.  Also, you'll want to request a refund of these points -- http://www.experts-exchange.com/help.jsp#hi70.

If you still haven't found your answer, I'll reply to the remaining question.
Landy
0
 

Author Comment

by:thomasmurray
ID: 12087630
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?
0
 

Author Comment

by:thomasmurray
ID: 12087787
hello?
0
 
LVL 7

Expert Comment

by:LandyJ
ID: 12088362
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...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question