T
Tony_VBACoder
I am new at setting up a Word document as a Mail Merge to
an Access Database. My situation involves a secured
Access 2000/2002 Database, with a Word 2000/2002 Mail
Merge Letter. My Access Databases are secured with a MDW
Security File required to open my Database. I have
various queries within my Access database are specific for
each Word Mail Merge document. In my Access DB workgroup
security file, I have created a user called "WordUser"
whose sole purpose is to be able to run the Word Mail
Merge Letters. This user has no password and only
has "Read" permission on all the tables/queries required
for each letter and nothing else. I have had no luck
being able to get my Word 2002 letter to connect to my
secured Access database with the Mail Merge Wizard within
Word (I have posted a few questions in the newsgroups, but
have not gotten any responses). So instead, I have tried
to go the ODBC route, where I would create a new DSN entry
that points to my Access database, in hopes that I could
use this ODBC entry as my datasource for my Word Mail
Merge document. However, this method has also raised some
questions that I hope someone can answer for me or help in
the right direction.
1) To create a new ODBC entry, I do the following:
a) click on "System DSN" Tab in the ODBC Data Source
Administrator
b) click the "Add" button
c) select "Microsoft Access Driver (*.mdb)"
d) click the "Finish" button
e) In the "ODBC Microsoft Access Setup" Form I:
f) enter "MyDB" in the "Data Source Name:" text box
g) click the "Select..." button in the "Database" Frame
to located my Access Database
h) click the "Advanced..." button
i) enter my "WordUser" in the "Login name:" text box in
the "Set Advanced Options" form and click the "OK" button.
j) select the "Database:" radio button in the "System
Database" frame
k) click the "System Database..." button to select my
MDW file for my secured database
l) click the "OK" button on the ODBC Microsoft Access
Setup form to complete setting up my new ODBC entry
2) Now, once my ODBC entry has been created, I go to my
Word 2002/2000 letter and select Tools>Letters and
Mailings>Mail Merge Wizard. At the Wizard's Step #3, I
select "Browse" from the "Use an existing list" option.
This brings up the "Select Data Source" dialog box. Here,
the "My Data Sources" is selected in the "Look in:" combo
box and all my ODBC entries are showing EXCEPT my newly
created Access ODBC entry I created in my above steps (a-
l). However, there are 2 entries that I am not familiar
with: "+Connect to New Data Source.odc" and "+New SQL
Server Connection.odc". I selected the "+Connect to New
Data Source.odc" option and it took me into a new "Data
Connection Wizard" where I did the following:
a) Select "ODBC DSN" from the "What kind of data source
do you want to connect to?" list and clicked the "Next"
button
b) Now my newly created ODBC entry shows up in
the "ODBC data sources" list. I selected it and clicked
the "Next" button
c) At this point, all my tables and queries were
listed. From the list, I selected my query for the letter
I am creating and clicked the "Next" button.
d) Now, the "Save Data Connection File and Finish"
dialog box is shown, prompting me to save this as a
connection file (*.odc). I entered a name and clicked
the "Finish" button.
Question: Is this the proper way of getting a Word
Document to connect to a Secured Access Database, by
having to create a separate Connection File for each Mail
Merge Letter I am wanting to create?
an Access Database. My situation involves a secured
Access 2000/2002 Database, with a Word 2000/2002 Mail
Merge Letter. My Access Databases are secured with a MDW
Security File required to open my Database. I have
various queries within my Access database are specific for
each Word Mail Merge document. In my Access DB workgroup
security file, I have created a user called "WordUser"
whose sole purpose is to be able to run the Word Mail
Merge Letters. This user has no password and only
has "Read" permission on all the tables/queries required
for each letter and nothing else. I have had no luck
being able to get my Word 2002 letter to connect to my
secured Access database with the Mail Merge Wizard within
Word (I have posted a few questions in the newsgroups, but
have not gotten any responses). So instead, I have tried
to go the ODBC route, where I would create a new DSN entry
that points to my Access database, in hopes that I could
use this ODBC entry as my datasource for my Word Mail
Merge document. However, this method has also raised some
questions that I hope someone can answer for me or help in
the right direction.
1) To create a new ODBC entry, I do the following:
a) click on "System DSN" Tab in the ODBC Data Source
Administrator
b) click the "Add" button
c) select "Microsoft Access Driver (*.mdb)"
d) click the "Finish" button
e) In the "ODBC Microsoft Access Setup" Form I:
f) enter "MyDB" in the "Data Source Name:" text box
g) click the "Select..." button in the "Database" Frame
to located my Access Database
h) click the "Advanced..." button
i) enter my "WordUser" in the "Login name:" text box in
the "Set Advanced Options" form and click the "OK" button.
j) select the "Database:" radio button in the "System
Database" frame
k) click the "System Database..." button to select my
MDW file for my secured database
l) click the "OK" button on the ODBC Microsoft Access
Setup form to complete setting up my new ODBC entry
2) Now, once my ODBC entry has been created, I go to my
Word 2002/2000 letter and select Tools>Letters and
Mailings>Mail Merge Wizard. At the Wizard's Step #3, I
select "Browse" from the "Use an existing list" option.
This brings up the "Select Data Source" dialog box. Here,
the "My Data Sources" is selected in the "Look in:" combo
box and all my ODBC entries are showing EXCEPT my newly
created Access ODBC entry I created in my above steps (a-
l). However, there are 2 entries that I am not familiar
with: "+Connect to New Data Source.odc" and "+New SQL
Server Connection.odc". I selected the "+Connect to New
Data Source.odc" option and it took me into a new "Data
Connection Wizard" where I did the following:
a) Select "ODBC DSN" from the "What kind of data source
do you want to connect to?" list and clicked the "Next"
button
b) Now my newly created ODBC entry shows up in
the "ODBC data sources" list. I selected it and clicked
the "Next" button
c) At this point, all my tables and queries were
listed. From the list, I selected my query for the letter
I am creating and clicked the "Next" button.
d) Now, the "Save Data Connection File and Finish"
dialog box is shown, prompting me to save this as a
connection file (*.odc). I entered a name and clicked
the "Finish" button.
Question: Is this the proper way of getting a Word
Document to connect to a Secured Access Database, by
having to create a separate Connection File for each Mail
Merge Letter I am wanting to create?