Let me restate my previous question succintly.
I have a data control whose ConnectionString property was of course set at design time. I now set the ConnectionString property at runtime
with a new value and then call the refresh method, like this.
With adodc
.ConnectionString = new value of connection string
.Refresh
end with
The Refresh method looks for the old value of the connection string property.
Even though, when I checked in the debugger, the Connection string is set to the new value.
SO WHAT IS THE CORRECT PROCEDURE FOR SETTING THE CONNECTION STRING PROPERTY OF AN ADO DATA CONTROL AT RUNTIME.
I have a data control whose ConnectionString property was of course set at design time. I now set the ConnectionString property at runtime
with a new value and then call the refresh method, like this.
With adodc
.ConnectionString = new value of connection string
.Refresh
end with
The Refresh method looks for the old value of the connection string property.
Even though, when I checked in the debugger, the Connection string is set to the new value.
SO WHAT IS THE CORRECT PROCEDURE FOR SETTING THE CONNECTION STRING PROPERTY OF AN ADO DATA CONTROL AT RUNTIME.