>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only