Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error running Documentation (Word97)
Message
From
22/06/1998 15:59:33
 
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00110268
Message ID:
00110685
Views:
17
>Now i have SDT5.0h and when trying to document tables i get this errormessage
>from VFP.
>
>Error#: 1426
>Message: OLE error code 0x80020005: Typblandningsfel
>Line: 50
>Code: .oWord.ActiveDocument.MailMerge.OpenDataSource(tcCursor,0,0,0,0,0,'','',0,'','','DSN=FoxProFiles;Driver=536;MaxBufferSize=512;PageTimeOut=5;'SELECT * FROM' + tcCursor)
>Method: tableswordvba
>Object: frmDocument
>
>
>The word "Typblandningsfel" should translated to english be something like "Error mixing types"

I can't reproduce this problem. However, a couple of things occur to me:

- An ODBC data source called "FoxPro Files" must be set up on your system

- Perhaps you have a different version of Word that has different parameters for the OpenDataSource method.

If the first item doesn't resolve the problem, please check the Visual Basic help topic for OpenDataSource. If you haven't done this in Word before, here's how: open Word; choose Tools, Macro, Visual Basic Editor; choose Help, Visual Basic help; type "OpenDataSource" (without quotes) and let it find the help topic. Finally, copy the syntax for this method from the help topic to the clipboard and email me the syntax.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform