I’ve had clients use the runtime before, but I have 1 client where I’m having continuing problems. Here is the code I’m using for opening a Mail Merge document:
dim oApp as object
Set oApp = CreateObject(“Word.Application”)
oApp.Visible = True
oApp.Documents.Open QU() & strDoc & QU()
oApp.ActiveDocument.MailMerge.OpenDataSource Name:=”c:contactNamesForPostcards.txt”
oApp.ActiveDocument.MailMerge.Destination = 1
QU() is just a function that returns a double-quote, and strDoc contains the document name (including path).
They had various full versions of Access (from 2000 to 2007), and it worked. Then some workststions were updated first to Access 2007 runtime (and later 2007 runtime) so we could upgrade the db to a .accdb database.
Now, when any of the runtime versions try this they get an “ActiveX component can’t create object” error (#429). They do have Word.
Is this just a deficiency in the runtime that won’t let use this? I haven’t tried it yet, but I also use a similar method to open and control an Excel spreadsheet, and I have a hunch that won’t work either.