J
John Gedling
The following code retrieves data from an ODBC system DSN :
.Range.InsertDatabase _
Format:=formatparam, Style:=styleparam, _
LinkToSource:=False, Connection:=constr, _
SqlStatement:=sql1, SqlStatement1:=sql2, _
IncludeFields:=tblfmt
constr = "DSN=xxx;SERVERTYPE=INGRES;BLANKDATE=NULL"
In Word 2000 and XP this works ok, in Word 2003 it brings
up the Select Data Source dialog and the user has to
select +Connect to New Data Source.odc and hit "Open".
How can I prevent this dialog appearing ?
Thanks
John
.Range.InsertDatabase _
Format:=formatparam, Style:=styleparam, _
LinkToSource:=False, Connection:=constr, _
SqlStatement:=sql1, SqlStatement1:=sql2, _
IncludeFields:=tblfmt
constr = "DSN=xxx;SERVERTYPE=INGRES;BLANKDATE=NULL"
In Word 2000 and XP this works ok, in Word 2003 it brings
up the Select Data Source dialog and the user has to
select +Connect to New Data Source.odc and hit "Open".
How can I prevent this dialog appearing ?
Thanks
John