Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2004

Tip: Looking for answers? Try searching our database.

problem using odc file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Winston - 13 Jun 2004 16:44 GMT
A2K2 WinXPPro.  Created Mail merge linking to table in .mde file.  Works fine.  Edited odc file with notepad to change from .mde to .mdb.  Same table, same format in both db's.  Doesn't seem to recognize change in odc file.  Searched for all odc files on my computer.  Double checked all edited properly (so I made sure that I must be pointing to the correct odc and mdb as opposed to mde)  Still continues to link to table in mde (as opposed to mdb which is what shows in the odc file).   All I can conclude is that the file name XYZ.mde is encoded somehow internally in the odc as opposed just using the file name.  Is this clear or should I expand my explanation of the problem?  Any ideas?
thanks,
Winston
Peter Jamieson - 14 Jun 2004 10:26 GMT
> All I can conclude is that the file name XYZ.mde is encoded somehow internally in the odc
> as opposed just using the file name.

Unfortunately it isn't even that  - it's stored inside the Word document in
the Connectstring, which you cannot change even in code without using the
OpenDataSource method. Although Word also stores the name of the .odc, it
doesn't revisit the .odc even when, for example, you reopen the Word
document. So the only way to get Word to recognise the updated connection
info. is to reconnect to the data source.

Signature

Peter Jamieson

> A2K2 WinXPPro.  Created Mail merge linking to table in .mde file.  Works fine.  Edited odc file with notepad to change from .mde to .mdb.  Same
table, same format in both db's.  Doesn't seem to recognize change in odc
file.  Searched for all odc files on my computer.  Double checked all edited
properly (so I made sure that I must be pointing to the correct odc and mdb
as opposed to mde)  Still continues to link to table in mde (as opposed to
mdb which is what shows in the odc file).   All I can conclude is that the
file name XYZ.mde is encoded somehow internally in the odc as opposed just
using the file name.  Is this clear or should I expand my explanation of the
problem?  Any ideas?
> thanks,
> Winston
Winston - 14 Jun 2004 23:53 GMT
Thanks Peter.  Thats something like I thought.  the xml in the odc is too simplistic to be the issue.  Unfortunately reconnecting the data source means that I need a different document for my own purposes when testing with the mdb than I do when installed on the users desktop with the mde.  I don't like using the backend db because it gets complicated when multiple users do a merge at the same time (not impossible, just a pain).  The only other solution is to create a secondary mdb with just a few tables on the users desktop.  Not a bad idea because it has other benefits... but a pain nevertheless.

> > All I can conclude is that the file name XYZ.mde is encoded somehow
> internally in the odc
[quoted text clipped - 19 lines]
> > thanks,
> > Winston
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.