A
Aziz
VB 2003, Access 2000
I have been using strongly typed Datasets/database connections, it
works fine
Now, I've added a OpenFileDialog functionality to my program so the
user can select the database file.
I've added & strCon & to this code (it's a Global variable):
Me.conADOConnection.ConnectionString = "Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase L" & _
"ocking Mode=1;Data Source=" & strCon & ";Jet OLEDB:Engine
Type=5;" & _
"Provider=""Microsoft.Jet.OLEDB.4.0"";...........
It works fine for a while, but occasionally this whole command seems to
just disappear. It tends to happen if I add a control to my form or
make some other big change. If I paste the code back in from another
form it works fine (for a while).
Why does my connection string keep disappearing?
I have been using strongly typed Datasets/database connections, it
works fine
Now, I've added a OpenFileDialog functionality to my program so the
user can select the database file.
I've added & strCon & to this code (it's a Global variable):
Me.conADOConnection.ConnectionString = "Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase L" & _
"ocking Mode=1;Data Source=" & strCon & ";Jet OLEDB:Engine
Type=5;" & _
"Provider=""Microsoft.Jet.OLEDB.4.0"";...........
It works fine for a while, but occasionally this whole command seems to
just disappear. It tends to happen if I add a control to my form or
make some other big change. If I paste the code back in from another
form it works fine (for a while).
Why does my connection string keep disappearing?