Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Open Access database from classic ASP

$
0
0

Hello.

I have ran my classic ASP pages for many years on diff. Windows Server OS, and it has worked very well.

Now I've set up a machine with Windows 10 Enterprise and installed IIS (and ASP support). My ASP-pages run just fine, but... I can't open my Access databases. I can connect but not open. Same code worked just fine earlier.

My code is like this, and it fails at the basen.Open....  line.

Dim ant_ratt,ant_svar,basen,cnpath,sql,rs,counter

SET basen=server.createobject("adodb.connection")
cnpath="DBQ=" & server.mappath("counter.mdb")
basen.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & cnpath

Is there something I need to download/install ?

As said earlier, all other ASP-pages works fine, it's just that opening of a .mdb database that fails.

I have Access 2013 installed.

Thanks in advance

/tarzzz


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>