Foros del Web » Programación para mayores de 30 ;) » Programación General » Visual Basic clásico »

Error 446 Porfa me ayudan?

Estas en el tema de Error 446 Porfa me ayudan? en el foro de Visual Basic clásico en Foros del Web. HOla estoy haciendo el consultar y me sale el siguiente error: Object doesnt support named arguments. este mi codigo de consultar Private Sub Cmd_Aceptar1_Click() Cadena_SQL ...
  #1 (permalink)  
Antiguo 14/11/2008, 09:31
 
Fecha de Ingreso: noviembre-2008
Mensajes: 131
Antigüedad: 15 años, 5 meses
Puntos: 0
Error 446 Porfa me ayudan?

HOla estoy haciendo el consultar y me sale el siguiente error:

Object doesnt support named arguments.

este mi codigo de consultar
Private Sub Cmd_Aceptar1_Click()


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 + "' and "
End If

If Text_Producto.Text <> "" Then
StrSql = StrSql + "item_no= '" & Text_Producto.Text + "' and "
End If

If Text_Product.Text <> "" Then
StrSql = StrSql + "search_desc= '" & Text_Product.Text + "' and "
End If

If Text_Especific.Text <> "" Then
StrSql = StrSql + "Especific_prod= '" & Text_Especif.Text + "' and "
End If

If Text_Presentacion.Text <> "" Then
StrSql = StrSql + "item_desc_2= '" & Cmd_present.Text + "' and "
End If

If Text_Cantidad.Text <> "" Then
StrSql = StrSql + "qty_prod= '" & Text_Presentacion.Text + "' and "
End If

If Text_Precio.Text <> "" Then
StrSql = StrSql + "prc_or_disc_1= '" & Text_Precio.Text + "' and "
End If

If Text_Validez.Text <> "" Then
StrSql = StrSql + "end_prc= '" & Text_Validez.Text + "' and "
End If

If Combo_terminos.Text <> "" Then
StrSql = StrSql + "pay_term=" & Combo_terminos.Text + "' and "
End If

If Text_Direccion.Text <> "" Then
StrSql = StrSql + "addr_1= '" & Text_Direccion.Text + "' and "
End If

If Text_Reque.Text <> "" Then
StrSql = StrSql + "lead_time= '" & Text_Reque.Text + "' and "
End If

If Combo_Vendedor.Text <> "" Then
StrSql = StrSql + "cot_sales= '" & Combo_Vendedor.Text + "' and "
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
'MsgBox Cadena_SQL
Connect.RecordSource = Cadena_SQL' AQUI ME SALE EL ERROR
'Rs2.Open Cadena_SQL, Connect
Fra_Funciones.Visible = True
Fra_Consultar.Visible = False
End Sub
  #2 (permalink)  
Antiguo 14/11/2008, 09:34
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Error 446 Porfa me ayudan?

Ya es el tercer o cuarto tema que abres sobre la misma cosa :. Por favor, no repitas temas, o se te puede sancionar por incumplimiento de las Políticas del Foro.

Y en cuanto a tu pregunta, ya te respondió Avellaneda en tu otro tema: http://www.forosdelweb.com/f69/probl...7/#post2660781
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:47.