I have a form with an AdoDc control associated to a datagrid.
The AdoDC uses a "ConnectionString" such as
"Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data
Source=..."
this is where the problem begins. The data source will not be known until
the user selects the database.
What is really weird is that if the source is not placed during design time,
during run time the form upon loading will generate an error ("Failed to
authenticate"). This error seems to be untrappable since it doesn't occur in
the Form Load or Activate event (I have tried to catch it there).
Of course once the error is ignored and the datasource is set in the form
load, everything works OK.
Anyone has any idea how this error can be trapped or eliminated?
Thanks in advance for your time.