Ver Mensaje Individual
  #11 (permalink)  
Antiguo 14/03/2009, 10:09
acc008
 
Fecha de Ingreso: marzo-2009
Mensajes: 23
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Comparacion de Columnas

Bueno al final logre lo que queria.
lo que hize fue publicar una variable para cada proveedor y luego las compare en un if:

Código:
Private Sub Grilla_Click()
Precio1 = Grilla.TextMatrix(Grilla.RowSel, 3)
Precio2 = Grilla.TextMatrix(Grilla.RowSel, 4)
Txt1.Text = Grilla.TextMatrix(Grilla.RowSel, 1)
If Precio1 < Precio2 Then
Txt2.Text = "Avangard"
Txt3.Text = Grilla.TextMatrix(Grilla.RowSel, 3)
Else
Txt2.Text = "AT&T"
Txt3.Text = Grilla.TextMatrix(Grilla.RowSel, 4)
End If
eso es un ejemplo que hize para probar usando solo 2 proveedores y me funciona bien :D.
Igualmente muchas gracias por su ayuda.. seguramente voy a postear otra vez :P.
Suerte !