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
429 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
[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
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 200 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 300 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

710 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