Re: run-time error '5922' and csv files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dominic Godin (nospam_at_plz)
Date: 08/27/04


Date: Fri, 27 Aug 2004 08:38:24 -0700

Thanks for the reply.

I managed to fix it in the end. Apparently Word has some nasty bugs
with certain versions of the ODBC. I switched the file extension from
csv to dat so word wouldn't use the ODBC and now all works fine.

Thanks

Dominic Godin

Cindy M -WordMVP- <C.Meister-C@hispeed.ch> wrote in
news:VA.00009e1b.004aeba0@speedy:

> Hi Dominic,
>
> When picking up a text file in Word 2000 (note _2000_, not 2002 or
> 2003 - this is important!), Word has the choice of using ODBC or its
> internal text converter. Given your macro code, I'd assume Word will
> try to use the text converter (you don't specify a DSN or anything of
> that sort). That should be present on every machine and not cause a
> problem. OTOH, I don't know anything about metaframe, either, so I
> don't know how/whether it might be interfering.
>
> The first thing I'd test, is whether this file can be opened in the
> UI. If it can, then someone should record a macro while doing so, so
> that you can compare the OpenDataSource code and see what kind of
> connection Word "wants" to use.
>
> My personal feeling is that this metaframe may somehow be blocking
> Word's access to the external file.
>
>> 'Set object reference to this mail merge (convenience coding)
>> Set thisMerge = ThisDocument.MailMerge
>>
>> 'Setup the mail merge datasource
>> With thisMerge
>> 'Set the merge type
>> .MainDocumentType = wdFormLetters
>> 'Set the data source information. Falls over here!!
>> .OpenDataSource name:= "C:\Temp\batchmerge.csv"
>> .SuppressBlankLines = True
>> .execute
>> End With
>>
>> The file batchmerge does exist and isn't corrupt. This works for
>> most of our clients. The client it falls over on is using metaframe
>> and word 2000. I get the error can not open data source. Is this
>> due to ODBC settings or something. I know little about metaframe but
>> our engineer says that the user can see C:\Temp\batchmerge.csv.
>>
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question
> or reply in the newsgroup and not by e-mail :-)
>
>



Relevant Pages

  • Re: run-time error 5922 and csv files
    ... Given your macro code, I'd assume Word will try to use the text ... converter. ... My personal feeling is that this metaframe may somehow be blocking Word's ... Is this due to ODBC ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Looking for AS400 DB ODBC Driver
    ... We built around EasyCom from MISSystems and 100s of our clients using it, ... >> ODBC connection loaded on their pc, but I don't have it for my pc. ... > is slow, buggy, and has bad customer support. ... The ODBC driver would not even ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: how to store a file in databes
    ... The clients are ODBC or .NET Data Provider from Windows OS. ... I need to store files from the clients to the BD (in some kind of BLOB ... You'll want to use the BLOB datatype. ...
    (comp.databases.informix)
  • Re: Invalid table number in Crystal Report
    ... Check table location, and if you are using odbc, check if odbc exist or not, ... Luqman ... Two of the clients can preview the report successfully. ...
    (microsoft.public.vb.crystal)
  • how to store a file in databes
    ... The clients are ODBC or .NET Data Provider from Windows OS. ... I need to store files from the clients to the BD (in some kind of BLOB ...
    (comp.databases.informix)