D
dennist
I have a form named Authors.vb. It connects to
HasbaraSample.mdb through cnHasbaraSample. I've read in
many places that if the database isn't given a path,
ado.net first looks in the folder of the solution. This
works in other places in my application.
The connect string is
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=HasbaraSample.mdb;
All the adapters and datasets are dragged from the data
component tab of the toolbox; after the wizard, I change
the connect string of cnHasbaraSample.
I might add that the columns include several comboboxes.
None of these are filled by the adapters that I create
for them, using cnHasbaraSample as the connect string.
This works perfectly elsewhere in my application.
None of the textboxes or comboboxes fill. Yet, I get no
error telling me the connection cannot be made.
On the other hand, I have a form POV.vb. In this form I
leave the full path in the connect string. Not
surprisingly, the comboboxes and textboxes fill perfectly.
In real life you can't deploy an application like this,
because the user may not use the same path as I do,
particularly drive H:, for example. Any help somebody
can give me will be much appreciated.
By the way, I've looked at the location of the mdb in a
message box in Authors.vb, and it is correct.
dennist
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=HasbaraSample.mdb;
HasbaraSample.mdb through cnHasbaraSample. I've read in
many places that if the database isn't given a path,
ado.net first looks in the folder of the solution. This
works in other places in my application.
The connect string is
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=HasbaraSample.mdb;
All the adapters and datasets are dragged from the data
component tab of the toolbox; after the wizard, I change
the connect string of cnHasbaraSample.
I might add that the columns include several comboboxes.
None of these are filled by the adapters that I create
for them, using cnHasbaraSample as the connect string.
This works perfectly elsewhere in my application.
None of the textboxes or comboboxes fill. Yet, I get no
error telling me the connection cannot be made.
On the other hand, I have a form POV.vb. In this form I
leave the full path in the connect string. Not
surprisingly, the comboboxes and textboxes fill perfectly.
In real life you can't deploy an application like this,
because the user may not use the same path as I do,
particularly drive H:, for example. Any help somebody
can give me will be much appreciated.
By the way, I've looked at the location of the mdb in a
message box in Authors.vb, and it is correct.
dennist
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=HasbaraSample.mdb;