No, I am not calling the Refresh Method. I am just using this code:
Sub sql_change()
Dim bosql As DataProvider
Dim bonewsql As String
Dim bosqlresult As String
Dim bodoc As Document
Dim varname As String
Dim i As Integer
Dim j As Integer
Set bodoc = busobj.ActiveDocument
For i = 1 To...
I am trying to change using VBA the sql of a data provider (bodoc.DataProviders(i).sql),replacing some conditions with others. The query with those changes is bonewsql ,and when I assign it to the bodoc.sql, the data provider is automatically refreshed. I would like to change the sql without...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.