Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Franz Weghaus Franz Weghaus is offline
external usenet poster
 
Posts: 4
Default Loosing access to data source in Word 2003

Hello!
I try to create a mailmerge file. So I create a connection to the data
source (xls or txt). I can save the file and everything seens to be OK.
So far so good. But if I reopen the merge file, the connection is lost.
This only happens if the data source is located in a network drive. I
tried to solve the problem described here
http://support.microsoft.com/kb/834699/en-us

(Method 1) but it didn't work. So are there other possibilities? Thanks.
Greets
Franz
p.s.: Sorry for my bad english.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Loosing access to data source in Word 2003

Could it be this one?

http://support.microsoft.com/kb/885832/en-us

I do not know if the above article solves the problem I am about to describe
or not:
a. By default, Word connects to several types of data source (including
..xls and .txt) using OLE DB
b. To do that, it constructs an OLE DB connection string that includes the
full path name of the "database", which is either a file name (e.g. if it is
a .mdb) or a folder name (e.g. if it is a .txt file). The connection string
also contains a lot of other stuff that you cannot eliminate.
c. When it saves the connect string, it truncates it to 255 characters.
d. If the pathname in the connect string is too long, the connection string
may be truncated in the middle of the pathname. In that case, Word will be
unable to connect to the data source when it re-opens.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Franz Weghaus" wrote in message
...
Hello!
I try to create a mailmerge file. So I create a connection to the data
source (xls or txt). I can save the file and everything seens to be OK. So
far so good. But if I reopen the merge file, the connection is lost. This
only happens if the data source is located in a network drive. I tried to
solve the problem described here
http://support.microsoft.com/kb/834699/en-us

(Method 1) but it didn't work. So are there other possibilities? Thanks.
Greets
Franz
p.s.: Sorry for my bad english.


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Franz Weghaus Franz Weghaus is offline
external usenet poster
 
Posts: 4
Default Loosing access to data source in Word 2003

Hello Peter,

this article didn't solve our problem. Do you have another idea? Thanks.

Greets
Franz Weghaus
  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Loosing access to data source in Word 2003

Do you have another idea? Thanks.

Not really, but...

1. Can you open your mail merge main document, connect to your data source,
and
a. use VBE to display the values of
ActiveDocument.MailMerge.Datasource.Name
ActiveDocument.MailMerge.Datasource.Connectstring
ActiveDocument.MailMerge.Datasource.Querystring

and post the values here?

2. Are you running Word via Terminal Server?

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Franz Weghaus" wrote in message
...
Hello Peter,

this article didn't solve our problem. Do you have another idea? Thanks.

Greets
Franz Weghaus


  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Franz Weghaus Franz Weghaus is offline
external usenet poster
 
Posts: 4
Default Loosing access to data source in Word 2003

Hello!

This is the result of the macro
****
Datacource.Name = X:\001 - Innere Verwaltung\001 -
Organisationsmanagement\003 - Presse -
Oeffentlichkeit\PresseEinladungen\Datenbank Outlook.doc
Datasource.Connectstring =
Datasource.QueryString = SELECT * FROM X:\001 - Innere Verwaltung\001 -
Organisationsmanagement\003 - Presse -
Oeffentlichkeit\PresseEinladungen\Datenbank Outlook.doc
****

Word is NOT running via Terminal Server.

Thank you for your trouble.

Franz Weghaus


  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Loosing access to data source in Word 2003

OK, so it's going wrong even with a .doc data source.

Does the user (you?) have write access to both the folder and the share that
contains the .doc? (Actually, I am not sure what permissions they need, but
it is likely that Word is trying to create temp. versions of the data files
in the "X:\001 - Innere Verwaltung\001 - Organisationsmanagement\003 -
Presse - Oeffentlichkeit\PresseEinladungen\" folder. However, I do not know
why the user would be able to connect manually but not programmatically in
that case.)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Franz Weghaus" wrote in message
...
Hello!

This is the result of the macro
****
Datacource.Name = X:\001 - Innere Verwaltung\001 -
Organisationsmanagement\003 - Presse -
Oeffentlichkeit\PresseEinladungen\Datenbank Outlook.doc
Datasource.Connectstring =
Datasource.QueryString = SELECT * FROM X:\001 - Innere Verwaltung\001 -
Organisationsmanagement\003 - Presse -
Oeffentlichkeit\PresseEinladungen\Datenbank Outlook.doc
****

Word is NOT running via Terminal Server.

Thank you for your trouble.

Franz Weghaus


  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Franz Weghaus Franz Weghaus is offline
external usenet poster
 
Posts: 4
Default Loosing access to data source in Word 2003

Hello!

The connection to the data source file is made manually but it is lost
when the merge file is opened again. The user does NOT have the
permission to write in the folder where the data source is to be found.
The folder is on a Windows 2003 Server.

Today I found out an interesting symptom when I use an Excel file as
data source. If I use a DDE connection the error occurs but if I use a
OLE connection it works. Here are the results of the macro you sent me:

*****DDE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString = Gesamtes Tabellenblatt
Datasource.QueryString = SELECT * FROM X:\009 - Raeuml. Planung u.
Entwickl., Geoinform\006 - Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls

*****OLE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString =
Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data
Source=X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls;Mode=Read;Extended Properties="HDR=YES;IMEX=1;";Jet
OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDBatabase
Password="";Jet OLEDB:Engine Type=35;Jet OLEDBatabase Locking
Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk
Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create
System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDBon't
Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;Jet OLEDB:SFP=False
Datasource.QueryString = SELECT * FROM `Tabelle1$`


So do you see a reason why the DDE connection is not available when I
open the merge file again? Thanks again!!!

Franz Weghaus
  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Loosing access to data source in Word 2003

The connection to the data source file is made manually but it is lost
when the merge file is opened again. The user does NOT have the permission
to write in the folder where the data source is to be found. The folder is
on a Windows 2003 Server.


Different versions of Word use different methods, by default, to open the
various file types. In Word 2002 and later, Word generally tries to use OLE
DB. If that fails, it may try ODBC. If that fails, it may try DDE (for Excel
and .mdb files) or it may try an internal or external file converter. For
example, if a text file has more than 255 data columns, Word cannot use OLE
DB to open it and will (probably) use its internal .txt file converter.

In Word 2000 and earlier, Word may try to open a .txt file using ODBC if it
is available, or using its internal text converter.

Every version of Word will use the internal converter to read native formats
..doc and .rtf (and perhaps the newer .xml formats).

My guess is that in most cases when Word uses an internal converter, it
wants to create and write a temp. file to the folder containing the data
source (just as it does when it opens a Word .doc in the usual way). I'm not
sure what you can do about this other than check whether or not that does
make a difference, and either change the settings for the users or create
another folder where they can create/write files.

I am pretty sure the same thing will happen if you open an Excel data source
using DDE, because in that case, Excel has to open the file and probably
does something rather similar. However, when you open using OLE DB, I don't
think the provider tries to create or write anything in the file's folder.

OK, so it still does not explain why a user can open the data source
manually but it is my best shot!

I had a look at the connection string length issue again and it appears that
this problem has now been fixed in Word 2003. I don't know when - perhaps
SP3. It isn't there in Word 2007 either. But I think it is still there in
Word 2002.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Franz Weghaus" wrote in message
...
Hello!

The connection to the data source file is made manually but it is lost
when the merge file is opened again. The user does NOT have the permission
to write in the folder where the data source is to be found. The folder is
on a Windows 2003 Server.

Today I found out an interesting symptom when I use an Excel file as data
source. If I use a DDE connection the error occurs but if I use a OLE
connection it works. Here are the results of the macro you sent me:

*****DDE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString = Gesamtes Tabellenblatt
Datasource.QueryString = SELECT * FROM X:\009 - Raeuml. Planung u.
Entwickl., Geoinform\006 - Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls

*****OLE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString =
Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data
Source=X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls;Mode=Read;Extended Properties="HDR=YES;IMEX=1;";Jet
OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDBatabase
Password="";Jet OLEDB:Engine Type=35;Jet OLEDBatabase Locking Mode=0;Jet
OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet
OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet
OLEDB:SFP=False
Datasource.QueryString = SELECT * FROM `Tabelle1$`


So do you see a reason why the DDE connection is not available when I open
the merge file again? Thanks again!!!

Franz Weghaus


  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
jpccol jpccol is offline
external usenet poster
 
Posts: 3
Default Loosing access to data source in Word 2003

Has anyone found a resolution of this issue. Everything was working fine
until about a year ago after running MS (Office 2003) and Windows (XP)
updates. Then the problems started:

- My server has the data (W2K Server)
- My 2 XP machines can connect the data to my mail merge forms manually, but
must re-connect each time.
- My W2K office laptop finds the data file and does not need to be manually
recoonected.
- When the merge file and data file is loaded to my standalone XP machine at
home, the data (XL) file is not disconnected after the file is closed, and
when re-opened, is found automatically

This has been a continuing problem and unfortuantely I have so many of my
forms connected to XL via DDE, it has become a significent loss of time. Any
suggestions would be greatly appreciated

Jim Calamis
feel free to email to
Thanks

"Peter Jamieson" wrote:

The connection to the data source file is made manually but it is lost
when the merge file is opened again. The user does NOT have the permission
to write in the folder where the data source is to be found. The folder is
on a Windows 2003 Server.


Different versions of Word use different methods, by default, to open the
various file types. In Word 2002 and later, Word generally tries to use OLE
DB. If that fails, it may try ODBC. If that fails, it may try DDE (for Excel
and .mdb files) or it may try an internal or external file converter. For
example, if a text file has more than 255 data columns, Word cannot use OLE
DB to open it and will (probably) use its internal .txt file converter.

In Word 2000 and earlier, Word may try to open a .txt file using ODBC if it
is available, or using its internal text converter.

Every version of Word will use the internal converter to read native formats
..doc and .rtf (and perhaps the newer .xml formats).

My guess is that in most cases when Word uses an internal converter, it
wants to create and write a temp. file to the folder containing the data
source (just as it does when it opens a Word .doc in the usual way). I'm not
sure what you can do about this other than check whether or not that does
make a difference, and either change the settings for the users or create
another folder where they can create/write files.

I am pretty sure the same thing will happen if you open an Excel data source
using DDE, because in that case, Excel has to open the file and probably
does something rather similar. However, when you open using OLE DB, I don't
think the provider tries to create or write anything in the file's folder.

OK, so it still does not explain why a user can open the data source
manually but it is my best shot!

I had a look at the connection string length issue again and it appears that
this problem has now been fixed in Word 2003. I don't know when - perhaps
SP3. It isn't there in Word 2007 either. But I think it is still there in
Word 2002.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Franz Weghaus" wrote in message
...
Hello!

The connection to the data source file is made manually but it is lost
when the merge file is opened again. The user does NOT have the permission
to write in the folder where the data source is to be found. The folder is
on a Windows 2003 Server.

Today I found out an interesting symptom when I use an Excel file as data
source. If I use a DDE connection the error occurs but if I use a OLE
connection it works. Here are the results of the macro you sent me:

*****DDE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString = Gesamtes Tabellenblatt
Datasource.QueryString = SELECT * FROM X:\009 - Raeuml. Planung u.
Entwickl., Geoinform\006 - Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls

*****OLE*****
Datacource.Name = X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls
Datasource.ConnectString =
Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data
Source=X:\009 - Raeuml. Planung u. Entwickl., Geoinform\006 -
Grundstueckswertermittlung\001
Grundstueckswertermittlung\Gutachterausschuss\Vord rucke\Datenbank
Outlook.xls;Mode=Read;Extended Properties="HDR=YES;IMEX=1;";Jet
OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDBatabase
Password="";Jet OLEDB:Engine Type=35;Jet OLEDBatabase Locking Mode=0;Jet
OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet
OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet
OLEDB:SFP=False
Datasource.QueryString = SELECT * FROM `Tabelle1$`


So do you see a reason why the DDE connection is not available when I open
the merge file again? Thanks again!!!

Franz Weghaus



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Source Lost When Merge From Access to Word Sarah G Mailmerge 12 October 24th 07 10:23 PM
I cant find an Access query which is a Word data source when I tr. Louise Mailmerge 1 October 23rd 07 08:25 AM
Data Source Lost When Merge From Access to Word Sarah G Mailmerge 0 September 18th 07 10:26 PM
Mail Merge in Word XP using Access XP as the data source Steve[_7_] Mailmerge 1 August 21st 07 04:04 PM
Using Access Data Source for Word Documents Sharon Mailmerge 0 August 24th 05 10:56 AM


All times are GMT +1. The time now is 12:07 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"