
12/11/2008, 13:23
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 131
Antigüedad: 16 años, 5 meses Puntos: 0 | |
Respuesta: Error 3705 Urgente Hola Alexis
ya esta solucionado era una bobada, yo llamaba la funcion cargar que es la que tiene mi conexion en el adicionar, entonces claro por eso se estaba abriendo 2 veces.
Gracias por tu ayuda.
Me puedes ayudar?
Pero ahora para elconsultar me sale el sgte error:
object doesn´t support named arguments
mira mi codigo:
obviamente tiene la misma funcion de cargar.
Private Sub Cmd_Aceptar1_Click() ' este es el de consultar
Cadena_SQL = "Select * from OECOTIZACION_SQL"
StrSql = ""
If Text_Fecha.Text <> "" Then
StrSql = StrSql + "cot_date=" & Text_Fecha.Text + " and "
End If
If Text_Id.Text <> "" Then
StrSql = StrSql + "cot_number=" & Text_Id.Text + " and "
End If
If Combo_Cliente.Text <> "" Then
StrSql = StrSql + "cus_name=" & Combo_Cliente.Text
End If
If Text_Producto.Text <> "" Then
StrSql = StrSql + "item_no=" & Text_Producto.Text
End If
If Text_Product.Text <> "" Then
StrSql = StrSql + "search_desc=" & Text_Product.Text
End If
If Text_Especific.Text <> "" Then
StrSql = StrSql + "Especific_prod=" & Text_Especif.Text
End If
If Text_Presentacion.Text <> "" Then
StrSql = StrSql + "item_desc_2=" & Cmd_present.Text
End If
If Text_Cantidad.Text <> "" Then
StrSql = StrSql + "qty_prod=" & Text_Presentacion.Text
End If
If Text_Precio.Text <> "" Then
StrSql = StrSql + "prc_or_disc_1=" & Text_Precio.Text
End If
If Text_Validez.Text <> "" Then
StrSql = StrSql + "end_prc=" & Text_Validez.Text
End If
If Combo_terminos.Text <> "" Then
StrSql = StrSql + "pay_term=" & Combo_terminos.Text
End If
If Text_Direccion.Text <> "" Then
StrSql = StrSql + "addr_1=" & Text_Direccion.Text
End If
If Text_Reque.Text <> "" Then
StrSql = StrSql + "lead_time=" & Text_Reque.Text
End If
If Combo_Vendedor.Text <> "" Then
StrSql = StrSql + "cot_sales=" & Combo_Vendedor.Text
End If
If Text_Observ.Text <> "" Then
StrSql = StrSql + "cot_Observ=" & Text_Observ.Text
End If
If StrSql <> "" Then
Cadena_SQL = Cadena_SQL + " where " + StrSql
cadena = Cadena_SQL
desde = Len(cadena)
hasta = (desde - 5)
Cadena_SQL = Mid(cadena, 1, hasta)
End If
Connect.RecordSource = Cadena_SQL
'Rs2.Refresh
Fra_Funciones.Visible = True
Fra_Consultar.Visible = False
End Sub |