Hi all,
I have some code:
[VBA]
Selection.Range.InsertDatabase Format:=0, Style:=0, LinkToSource:=False, _
Connection:= _
"CONNECTION_STRING_HERE" _
, SQLStatement:= _
"SQL_STATEMENT_HERE" _
, PasswordDocument:="", PasswordTemplate:="", WritePasswordDocument:="", _
WritePasswordTemplate:="", DataSource:="", From:=-1, To:=-1, _
IncludeFields:=True
[/VBA]
which will insert some data from a database (not Access) via ODBC
into the active document where the cursor is.
I want to be able to have more control over where the data gets inserted.
What I want to be able to do is set the above to a variable then using VBA and bookmarks
I can insert the data via the variable to where I it to go.
Can this be done?.
Thanks,
Marcster.