• 0
Sign in to follow this  
Guest Bizonho

Erro Para Acessar Banco Access

Question

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"

'request.form("id")

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

rs.Close

---------------------------------------------

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.

Bizonho

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.

Guest
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