Link to home
Start Free TrialLog in
Avatar of GwynforWeb
GwynforWebFlag for Canada

asked on

ASP DB code does not work for .accdb DB's, used to for .mdb. Do I need to install something?

The code below worked fine when I when I had .mdb Access databases , but when I try to run it with .accdb Access databases it no longer works, I get

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified

My guess is I have to install something on the server, any guesses?

<%  
dbstr = "Driver={Microsoft Access Driver (*.accdb)};DBQ=C:\InetPub\wwwroot\wt13\webDB\Project.accdb"
set conn =Server.CreateObject("adodb.connection")    
conn.Open dbstr
sql="select * from Users"
set rs= conn.execute(sql)
while not rs.eof
   Response.Write rs("UserName") & "</br>" & rs("Password") &"</P>"
   rs.movenext
wend
conn.close
%>
ASKER CERTIFIED SOLUTION
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GwynforWeb

ASKER

Nope, now I get this

ADODB.Connection error '800a0e7a'

Provider cannot be found. It may not be properly installed.

Found this though

"Enable 32-bit applications" needs to be enabled in the connection pool for the website, within IIS Manager 7."

on another site, any thoughts?
SOLUTION
Avatar of cyberkiwi
cyberkiwi
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you need to show your code.

What I provided *should* work.