bueno el selec es este
[note]
Option Explicit
Enum EACCION
AGREGAR_REGISTRO = 0
EDITAR_REGISTRO = 1
End Enum
Public IdRegistro
Public ACCION As EACCION
Private Sub cmdGuardar_Click()
Text1(11).Text = ((Val(Text1(9).Text) * Val(Text1(10).Text)))
Text1(22).Text = ((Val(Text1(11).Text * 0.3) / 1.19))
'Agrega el registro
'''''''''''''''''''''''''''''''
Select Case ACCION
Case EDITAR_REGISTRO
cnn.Execute "UPDATE Clientes set voucher = '" & Text1(1) & _
"', dia = '" & Text1(2) & _
"', contacto = '" & Text1(3) & _
"', razonsocial = '" & Text1(4) & _
"', nºderuc = '" & Text1(5) & _
"', direccion = '" & Text1(6) & _
"', inspector = '" & Text1(7) & _
"', tipodecertificado = '" & Text1(

& _
"', cantidad = '" & Text1(9) & _
"', precio = '" & Text1(10) & _
"', total= '" & Text1(11) & _
"', codigodebarra = '" & Text1(12) & _
"', cit = '" & Text1(13) & _
"', nºdeplaca = '" & Text1(14) & _
"', nºdemotor = '" & Text1(15) & _
"', nºdeserieochasis = '" & Text1(16) & _
"', nºdecertificado = '" & Text1(17) & _
"', totalvoucher = '" & Text1(18) & _
"', boletaofactura = '" & Text1(19) & _
"', mes = '" & Text1(20) & _
"', lista = '" & Text1(21) & _
"', asignacion = '" & Text1(22) & _
"', observacion = '" & Text1(23) & _
"' where Cod = " & IdRegistro & ""
Case AGREGAR_REGISTRO
cnn.Execute "INSERT INTO Clientes " & "(voucher,dia,contacto,razonsocial,nºderuc,direccion,inspector,tipodecertificado,cantidad,precio,total,codigodebarra,cit,nºdeplaca,nºdemotor,nºdeserieochasis,nºdecertificado,totalvoucher,boletaofactura,mes,lista,asignacion,observacion) VALUES('" & _
Text1(1) & "','" & _
Format(Date, "dd/mm/yyyy") & _
Text1(3) & "','" & _
Text1(4) & "','" & _
Text1(5) & "','" & _
Text1(6) & "','" & _
Text1(7) & "','" & _
Text1(

& "','" & _
Text1(9) & "','" & _
Text1(10) & "','" & _
Text1(11) & "','" & _
Text1(12) & "','" & _
Text1(13) & "','" & _
Text1(14) & "','" & _
Text1(15) & "','" & _
Text1(16) & "','" & _
Text1(17) & "','" & _
Text1(18) & "','" & _
Text1(19) & "','" & _
Text1(20) & "','" & _
Text1(21) & "','" & _
Text1(22) & "','" & _
Text1(23) & "','" & "')"
End Select
rs.Requery 1
Call CargarListView(FrmPrincipalCarmen.LV, rs)
DoEvents
Unload Me
Set FrmEditCarmen = Nothing
Exit Sub
ErrorSub:
MsgBox Err.Description
End Sub
Private Sub cmdCancelar_Click()
Unload Me
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
Unload Me
End If
End Sub
Private Sub Text1_Change(Index As Integer)
Text1(22) = Format(Text1(22), "#0.00")
Text1(11) = Format(Text1(11), "#0.00")
Text1(18) = Format(Text1(18), "#0.00")
End Sub
[/note]
y el error se me origina en esta parte [[ cnn.Execute "UPDATE Clientes set voucher = '" & Text1(1) & _ ]] y todo lo q viene abajo hasta terminar el update