• 0
Sign in to follow this  
crucifier

Alguem Sabe Que Erro Eh Esse?

Question

na hora de incluir a subcategoria ta dando esse erro:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.26-debug-log]Duplicate entry '0' for key 1

/admin/inclusao_sub.asp, line 282

codigo:

    objRS.Open strQ, objCon, , , &H0001
    objRS.Addnew()
	If objRS.Fields("subcategoria").properties("IsAutoIncrement") = False Then
      objRS("subcategoria") = Trim(Request.Form("subcategoria"))
    End If
    objRS.Update 'linha 282
    objRS.Close
    Set objRS = Nothing

foda imaginei ser negocio de duplicação e tal..mas não é...eu adiciono nomes que não tem lá e mesmo assim da zica...alguém sabe porq disso e como arrumar isso?

Share this post


Link to post
Share on other sites

2 answers 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