Con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\db1.mdb"
Con.Open()
VB.Net is OK!
________________________________________________
(VB.Express Edition ) Is error!
please help to me!
Con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\db1.mdb"
Con.Open()
VB.Net is OK!
________________________________________________
(VB.Express Edition ) Is error!
please help to me!
Application.StartupPath????????
MKyE
hi,
try to make it like this
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db1.mdb"
or you can use system.reflection to get the path or you assemply there is a post about that in the FAQ thread at the top of this forum
hope this helps
sherrill