Solved

Programmatically embed object into Access Table with VB6

Posted on 2004-09-17
9
980 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 Public Synonyms and Privileges 2 74
VBA MS Word "Table of Contents" extractor` 4 57
constraint check 2 48
Software for Local History Museum Library 5 51
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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

830 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