• 0
Sign in to follow this  
Guest Bizonho

Erro Para Acessar Banco Access


Guest Bizonho

Oi pessoal !

Estou usando esta rotina para acessar um banco em Access.


filePath = Server.MapPath("db\base.mdb") & ";Uid=Admin;Pwd=senha;"

strID= "1"


set cn = server.createObject("ADODB.Connection")

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath

strQ = "SELECT COUNT(chave) as TOTAL from lotes"

Set rs=cn.Execute (strQ)

response.write "&fim=" & rs("TOTAL") & "&"

strQ="SELECT * From lotes where id=" & "'" & strID & "'" &""

Set rs=cn.Execute (strQ)

'Do While Not rs.EOF

If rs.BOF = True Then



quando eu executo o script tá dando este erro:


Microsoft JET Database Engine (0x80004005)

Não foi possível encontrar ISAM instalável.

/pasta/consulta.asp, line 19


alguém saberia me dizer onde estou errando.

Agradeço a atenção.


Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this