I have two folders in web folder.
1. ASPPage folder
2. Database folder
My test page is in ASPPage folder and I try to connect it to my test.mdb in Database folder
I put like this:
strDataPath = Server.MapPath("wwwroot\Database\Test.mdb")
strConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;"_
+ " Data Source = " & strDataPath & ";"_
+ " Mode=Share Deny None; User Id=admin;Password=;"
It gives me an error saying the path is invalid and returns this:
path:"c:\inetpub\wwwroot\asppage\wwwroot\database\ test.mdb" is NOT a valid path.
Can someone help? Thx.