Jump to content
Fórum Script Brasil
  • 0

Erro Na Instrução Insert Into


sergiotp

Question

Fala ae glr beleza??

Tipo já tentei de tudo nem to conseguindo arrumar essa parada aqui, novato é fogo mas vo aprender wink.gif

O erro:

Tipo de erro:

Microsoft JET Database Engine (0x80040E14)

Erro de sintaxe na instrução INSERT INTO.

/site/admin/scoluna.asp, line 11

O Código:

<%Set Conexao = Server.CreateObject("ADODB.Connection")
Dim Dbq
Dbq = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("coluna.mdb") & ";Persist Security Info=False;Jet OLEDB:Database Password="
Conexao.Open Dbq
desc = Request.form("desc")
data = Request.form("data")
texto = Request.form("texto")


Sql1 = "INSERT INTO coluna(data,desc,texto) Values ('"& desc & "', '"& data & "', '"& texto & "')"
Set Rs = Conexao.Execute(Sql1)
Rs.open
Conexao.close
Set rs = Nothing
Set conexao = Nothing%>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

http://www.aspbrasil.com.br/TUTORIAIS/deta...odConteudo=1144

vamos ver seu insert

Sql1 = "INSERT INTO coluna(data,desc,texto) Values

('"& desc & "', '"& data & "', '"& texto & "')"

Set Rs = Conexao.Execute(Sql1)

Rs.open

agora inverta os em azul e tire o em vermelho

Sql1 = "INSERT INTO coluna(data,desc,texto) Values ('"& data & "', '"& desc & "', '"& texto & "')"
Set Rs = Conexao.Execute(Sql1)

verifique se esta tudo correto nos campos

Link to comment
Share on other sites

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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...