access error

  • Thread starter Thread starter mozart
  • Start date Start date
M

mozart

i'm do folow access database conection:

"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.Mappath("Banco/BancoEvento.mdb")

but, this return error:
"Command was not prepared."

what is do?
 
I really don't know what the question is... Hope this helps.

Dim Conn As New System.Data.OleDb.OleDbConnection
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("Banco/BancoEvento.mdb") & ";"
Conn.Open()
 
Back
Top