Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

is there a way to store an sqlite database within a ms word document? that the ms word document can communicate with thru vba macros

Posted on 2013-01-28
4
Medium Priority
?
448 Views
Last Modified: 2013-01-29
I have many word documents that communicate with their own sqlite database it would be great if I could store them together as a single unit is that possible
0
Comment
Question by:Dov_B
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 800 total points
ID: 38828076
I believe you can store them all in a sqllite db like BLOBs - see below:

http://mornie.org/blog/2007/01/10/Storing-binary-data-in-SQLite/

Then work with them (edit) and save back to SQLLite like:

http://www.powerbasic.com/support/pbforums/showthread.php?t=45848
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 1200 total points
ID: 38828837
lcohan seems to have misunderstood the question, but that's probably because that way round makes more sense.
You can store a limited number of object types. Sqllite is not listed, but if the that type of database is contained in a single file, you could try to Insert an Object (Insert tab), and choose the 'Create from File' tab on the Object dialogue. It works with Access, but not with MySQL.
0
 

Author Comment

by:Dov_B
ID: 38828859
what path would I use when communicating with the inserted database
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 38830593
Thanks, I don't think that you can access embedded objects in code. I tried with an Excel Workbook:
Sub ProcessEmbeddedExcel()
    Dim ilsh As InlineShape
    Dim xlApp As Excel.Application
    Dim xlWbk As Excel.Workbook
    Dim xlWks As Excel.Worksheet
    
    Set ilsh = ActiveDocument.InlineShapes(1)
    Set xlWbk = ilsh.OLEFormat.Object
End Sub

Open in new window

but it failed on line 8 with error 430 - "Class does not support Automation or does not support expected interface"
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Suggested Courses

927 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