On trying to use the
ActiveDocument.Mailmerge.OpenDataSource command on a CSV
file, on a particular Windows 2000 computer I get
Runtime Error 5922
Unable to open datasource
The thing is the code works fine on another Win 2000
computer.
My suspicion is something to do with permissions /
security, but since I cannot even lookup what error 5922
actually means, because the System Error codes finish at
5907, this does not help me.
The permissions on the file / folder are set to everyone
full control, and the file is created programatically by
the same user OK.
Does anyone know what 5922 unable to open Datasource
actually means, and more importantly how to fix it?
Steve of easyget.biz - 26 Mar 2004 12:05 GMT
I dont know what has happened to my posting of this on the
application.errors newsgroup, as cannot find it there,
although Google Groups does find it even with a reply from
Kevin JF.
Sorry if I was not supposed to double post, but I did not
know about these rules, anyway. In response to Kevin JF's
suggestion. ID does not feature in the field names
anywhere in my csv.
I wonder if anyone has got any other ideas, why VBA
mailmerge open datasource method works on one windows 2000
machine but not another?
>-----Original Message-----
>On trying to use the
[quoted text clipped - 19 lines]
>actually means, and more importantly how to fix it?
>.
Peter Jamieson - 16 Apr 2004 08:40 GMT
Sorry for the late reply but...
A possible reason for the difference in behaviour could be that one machine
has ODBC installed/enabled and the other does not. Could be worth having a
look at the ODBC configuration, and/or changing the filename extension or
having a look to see if there is a SCHEMA.INI file in the same folder as
your csv file.

Signature
Peter Jamieson - Word MVP
Word MVP web site http://word.mvps.org/
> On trying to use the
> ActiveDocument.Mailmerge.OpenDataSource command on a CSV
[quoted text clipped - 17 lines]
> Does anyone know what 5922 unable to open Datasource
> actually means, and more importantly how to fix it?