Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Pip''''n Pip''''n is offline
external usenet poster
 
Posts: 9
Default Hard Code link to Data Source

I have a merge document that is located on a server that is accessed using a
local company intranet. I have built my application to work on my local host
and am now about to move it to the live server however I notice that the data
source links in my database fields use access a data source link that is
stored on my local machine.

The database field reads: { IF { DATABASE \d "C:\\Documents and
Settings\\username\\My Documents\\My Data Sources\\CompName MyIntranet
mailMerge_Service.odc" \s "SELECT PATINDEX('%, 37,%', ', ' + ProductLookup +
',') FROM \"mailMerge_Service\"" \O#} ......

How do I rebuild the data source so that it doens't reference a connection
that is stored on the host machine?

The name of the data source in this case is "MyIntranet
mailMerge_Service.odc".
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Hard Code link to Data Source

Hi Pip""n


How do I rebuild the data source so that it doens't reference a connection
that is stored on the host machine?


AFAIK, the DATABASE field expexts to find the "data source" somewhere in the
Windows file system.

e.g., if you copy your .odc file to a network folder that can be accessed
via a UNC pathname or a driveletterx:\pathname you should still be able to
use your DATABASE field. The .odc should describe the /source database/ in a
way that is not relative to the location of the .odc itself.

If you can't do that, there is no alternative AFAIK, because you can't point
to a SQL without a .udl, .odc, or old-style .dsn (for ODBC connections) and
in the case of ODBC, you must at least have the ODBC driver on the machine,
and a suitable ODBC DSN or .dsn file.

Peter Jamieson


"Pip''''n" wrote in message
...
I have a merge document that is located on a server that is accessed using
a
local company intranet. I have built my application to work on my local
host
and am now about to move it to the live server however I notice that the
data
source links in my database fields use access a data source link that is
stored on my local machine.

The database field reads: { IF { DATABASE \d "C:\\Documents and
Settings\\username\\My Documents\\My Data Sources\\CompName MyIntranet
mailMerge_Service.odc" \s "SELECT PATINDEX('%, 37,%', ', ' + ProductLookup
+
',') FROM \"mailMerge_Service\"" \O#} ......

How do I rebuild the data source so that it doens't reference a connection
that is stored on the host machine?

The name of the data source in this case is "MyIntranet
mailMerge_Service.odc".


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Pip''''n Pip''''n is offline
external usenet poster
 
Posts: 9
Default Hard Code link to Data Source

That first solution was exactly what I did. Glad to see that my intuition was
following the right thought process.

Thanks for your help Peter.

"Peter Jamieson" wrote:

Hi Pip""n


How do I rebuild the data source so that it doens't reference a connection
that is stored on the host machine?


AFAIK, the DATABASE field expexts to find the "data source" somewhere in the
Windows file system.

e.g., if you copy your .odc file to a network folder that can be accessed
via a UNC pathname or a driveletterx:\pathname you should still be able to
use your DATABASE field. The .odc should describe the /source database/ in a
way that is not relative to the location of the .odc itself.

If you can't do that, there is no alternative AFAIK, because you can't point
to a SQL without a .udl, .odc, or old-style .dsn (for ODBC connections) and
in the case of ODBC, you must at least have the ODBC driver on the machine,
and a suitable ODBC DSN or .dsn file.

Peter Jamieson


"Pip''''n" wrote in message
...
I have a merge document that is located on a server that is accessed using
a
local company intranet. I have built my application to work on my local
host
and am now about to move it to the live server however I notice that the
data
source links in my database fields use access a data source link that is
stored on my local machine.

The database field reads: { IF { DATABASE \d "C:\\Documents and
Settings\\username\\My Documents\\My Data Sources\\CompName MyIntranet
mailMerge_Service.odc" \s "SELECT PATINDEX('%, 37,%', ', ' + ProductLookup
+
',') FROM \"mailMerge_Service\"" \O#} ......

How do I rebuild the data source so that it doens't reference a connection
that is stored on the host machine?

The name of the data source in this case is "MyIntranet
mailMerge_Service.odc".



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
How to link a different Mailmerge header source and data source? Eleni_Malli Mailmerge 1 May 3rd 06 02:08 PM
creating data source through C # code in Visual studio? [email protected] Mailmerge 0 October 27th 05 10:02 AM
Merging hyper link from data source Jasy Mailmerge 3 June 1st 05 12:58 PM
Data source link urgent question! Mark Mailmerge 1 April 7th 05 09:05 AM
MSWord -- link to source doc does not print multi-page source when cleongue Microsoft Word Help 1 March 15th 05 09:11 AM


All times are GMT +1. The time now is 08:53 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"