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
410 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 39

Assisted Solution

by:lcohan
lcohan earned 200 total points
Comment Utility
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 300 total points
Comment Utility
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
Comment Utility
what path would I use when communicating with the inserted database
0
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS Access question 11 48
PHP Word Writer 1 41
Trouble connecting to SqlServer database 4 29
Insert with SET how to handle join 6 26
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now