Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/10/2010, 10:58
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: No se han especificado valores para algunos de los parámetros requeridos

Hola!!
Intenta asi:
Código vb:
Ver original
  1. Dim CnN As New ADODB.Connection
  2. Dim Rst As New ADODB.Recordset
  3.  
  4. Private Sub Command4_Click()
  5. z = 0
  6. Do While z < lstCodigo.ListCount
  7. CnN.Execute "INSERT INTO ventas(Cliente, CantidadVendida, Detalle, Precio , PrecioTotal, NumeroFactura, Codigo, Fecha, Unidad) VALUES ('" & txtCliente & "', " & Val(lstCantidad.List(z)) & ", '" & lstDetalle.List(z) & "', " & Val(lstPrecio.List(z)) & ", " & Val(lstTotal.list(z)) & ", " & Val(txtNumeroFactura) & ", " & Val(lstCodigo.List(z)) & ", '" & txtFecha & "', " & lstUnidades.List(z) & " )"
  8.  
  9. z=z+1
  10. Loop
  11.   MsgBox "guardado"
  12. End Sub

Noté que no usas el lstTotal.list(z). Recuerda que debes tener la misma candidad de items en todos los listbox.