I've TRied a couple of things and am now getting this attached error alot.
One thing I have noticed is that the connection string created by the Word
macro is longer than 255 and trucanted
I've also tried using a connection string found via google that you had help
someone else with an odc less connection .... which is what I am trying to
achieve
If it's not posible I supose I could write code to edit the odc file on the
fly but this does seem wrong !
Thanks
Andrew
> One thing I have noticed is that the connection string created by the Word
> macro is longer than 255 and trucanted
Yes. If you use the recorder to create your OpenDataSource this can lead to
problems.
Typically you can reduce these strings, e.g. in yours (as below) you
probably do not need
Use Procedure for Prepare, Auto Translate, Packet Size, Use Encryption for
Data, Tag with... if you do not need to change the defaults, and you don't
really need Workstation ID either.
But in fact when Word opens the data source, it sends the connection string
to the driver/provider, which modifies it anyway, and Word actually ends up
storing the modified version which tends to contain all the default values.
In some versions of Word, this gets truncated, but it doesn't usually appear
to cause any damage unless it truncates something "important" like the "Data
Source" name.
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
>>>> Info=True;Initial Catalog=System3000;Data Source=AGKBIGDELL;Use
>>>> Procedure
>>>> for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation
>>>> ID=AGKBIGDELL;Use Encryption for Data=False;Tag with col
> I've also tried using a connection string found via google that you had
> help someone else with an odc less connection .... which is what I am
> trying to achieve
You can't avoid having either a DSN (ODBC connections), .odc or a .udl for a
Word mailmerge data source to a server-style DBMS.
But the .odc can be completely empty if you put all the connection and query
info. in the OpenDataSource
At the moment I can't spot what is going wrong with your connection info.
but if necessary I will try to pick this up again later tomorrow (UK time)
if I can.

Signature
Peter Jamieson
http://tips.pjmsn.me.uk
> I've TRied a couple of things and am now getting this attached error alot.
>
[quoted text clipped - 197 lines]
>>>>>>> This is just a test but the structure of the table I am conecting to
>>>>>>> is