Solved

Programmatically embed object into Access Table with VB6

Posted on 2004-09-17
9
1,007 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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 500 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

696 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