View Single Post
  #1 (permalink)  
Old 12-02-2008, 11:37 AM
emadmilan emadmilan is offline
VB.NET Forum Newbie
.NET Framework: .NET 1.1 (VS 2003)
 
Join Date: Jun 2008
Posts: 1
Reputation: 0
emadmilan is on a distinguished programming path ahead
Default Database not found

hi


when i try to connect to my database which is MS Access file i get this error
Could not find file 'C:\Users\Emad N. Alrwaily\Desktop\Sorting\Projects\WebSite1\MyDataB ase.mdb'

and this hapen to my i put the connection string like this
Code:
Dim StrCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyDataBase.mdb;"
but when i put the full path of the database directory it work like this
Code:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Emad N. Alrwaily\Desktop\Sorting\WebSites\WebSite1\MyDataBase.mdb;"
please help
Reply With Quote