I need to fill a MSFlexGrid
Some one give an idea
I have this code but, it doesn't not work
Dim cad As String
cad = "SELECT clave_des,comp_des FROM destinatario WHERE comp_des LIKE " & "'*" & txt_Buscar.Text & "*'"
Data1.RecordSource = cad
Data1.Refresh
grid.Cols = 3
grid.TextMatrix(0, 1) = "clave_des"
grid.TextMatrix(0, 2) = "comp_des"
For i = 0 To Data1.Recordset.RecordCount - 1
grid.TextMatrix(i + 1, 0) = i + 1
cad = grid.TextMatrix(i + 1, 1)
cad = "clave_des = " & comillas & cad & comillas
Data1.Recordset.FindFirst cad
Next
grid.ColWidth(0) = 700
grid.ColWidth(1) = 1500
grid.ColWidth(2) = 2060
Some one give an idea
I have this code but, it doesn't not work
Dim cad As String
cad = "SELECT clave_des,comp_des FROM destinatario WHERE comp_des LIKE " & "'*" & txt_Buscar.Text & "*'"
Data1.RecordSource = cad
Data1.Refresh
grid.Cols = 3
grid.TextMatrix(0, 1) = "clave_des"
grid.TextMatrix(0, 2) = "comp_des"
For i = 0 To Data1.Recordset.RecordCount - 1
grid.TextMatrix(i + 1, 0) = i + 1
cad = grid.TextMatrix(i + 1, 1)
cad = "clave_des = " & comillas & cad & comillas
Data1.Recordset.FindFirst cad
Next
grid.ColWidth(0) = 700
grid.ColWidth(1) = 1500
grid.ColWidth(2) = 2060