How does one look at data in an open MS access aplication from MS Word 
Author Message
 How does one look at data in an open MS access aplication from MS Word

Here is there Problem,

I have a word document that has a merge linked to a query in access.
The query has a parameter that is a field in a form. The field's data is an
input from a user (account number).

I'm Opening the word document from access. When the document open, on the
AutoOpen event of the document, I triggers the merge and it looks up for the
query in access.

The problem is that when the merge is triggered it open another instance of
the database and in that instance of the database the form is not loaded,
therefore the query has no value for the parameter.

How do I set the merge to look in the database that is presently open and
not another instance of itself?



Sun, 13 Jul 2003 10:12:26 GMT  
 How does one look at data in an open MS access aplication from MS Word
It's a bug.

See Dev Ashish's The Access Web article

MailMerge starts new instance of Access
http://www.mvps.org/access/bugs/bugs0011.htm

for solution.

HTH
Van T. Dinh


Quote:
> Here is there Problem,

> I have a word document that has a merge linked to a query in access.
> The query has a parameter that is a field in a form. The field's data is
an
> input from a user (account number).

> I'm Opening the word document from access. When the document open, on the
> AutoOpen event of the document, I triggers the merge and it looks up for
the
> query in access.

> The problem is that when the merge is triggered it open another instance
of
> the database and in that instance of the database the form is not loaded,
> therefore the query has no value for the parameter.

> How do I set the merge to look in the database that is presently open and
> not another instance of itself?



Sun, 13 Jul 2003 20:55:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How does one look at data in an open MS access aplication from MS Word

2. Accessing current record in MS Access with DDE from MS Word

3. MS Word to grab data from MS IExplorer (5.5)

4. Can't open data control in MS Visual Basic Editor for MS project

5. Working with MS Word and MS Access

6. MS Access & MS Word Automation/Security Issue

7. Lookup MS Access table from MS Word

8. mail-merge MS Word and MS Access via ASP

9. Use VBScript to read data from MS-Access to MS-Outlook

10. Automatically Emailing Data from MS Access to MS Outlook

11. Automatically Emailing Data from MS Access to MS Outlook

12. Saving data in MS Project 98 to MS Access

 

 
Powered by phpBB® Forum Software