I use word Automation in my VB6 application.
I get an annoying Select table Window/prompt with the list of my tables.
Although i give my tablename as a parameter
Now this works perfect in Word2002 but in earlier version Word2000Code:Appword.ActiveDocument.mailMerge.openDataSource Name:= FolderName & "\FormInvullen.mdb", SQLStatement:="Table LayoutTable", ReadOnly:=True
I allways get the 'Select table window displayed'.
Now i have read the folowing article at microsoft
http://support.microsoft.com/kb/q289830/
And i tried Connection instead of SQLStatement but did not help.
Code:Appword.ActiveDocument.mailMerge.openDataSource Name:= FolderName & "\FormInvullen.mdb", Connection:="Table LayoutTable", ReadOnly:=True
I allso added SQLstatment allso but with no effect.
Can someone help me.




Reply With Quote