Solved

Programmatically embed object into Access Table with VB6

Posted on 2004-09-17
9
970 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
oracle query help 18 113
Query Database For Table - Email that has a blank, missing, or no data 7 71
Slow SQL query 12 61
Documenting Data flow 4 40
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

809 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