Ayuda con esta SQL por favor
Publicado por mortadelo (12 intervenciones) el 16/11/2003 12:47:43
saludos , tengo un pequeño problema y es que no se como pasarle un SQL este es el codigo que tengo .
Dim oDataview As New DataView()
oDataview.Table = oDataSet.Tables("Agenda")
'oDataview.RowFilter = "Nombre = '" & Me.TxtBuscar.Text & "'"
DE ESTA FORMA ME VA BIEN.
oDataview.RowFilter = "SELECT Nombre FROM Agenda WHERE (Agenda.Nombre) LIKE '" & Me.TxtBuscar.Text & "*'"
AQUI VIENE EL FALLO ¿ Se le puede pasar una SQL a la propiedad Rowfilter del Dataview?
Me.Grid1.Text = "Buscar Nombre: " & Me.TxtBuscar.Text
Me.Grid1.DataSource = oDataview
Dim oDataview As New DataView()
oDataview.Table = oDataSet.Tables("Agenda")
'oDataview.RowFilter = "Nombre = '" & Me.TxtBuscar.Text & "'"
DE ESTA FORMA ME VA BIEN.
oDataview.RowFilter = "SELECT Nombre FROM Agenda WHERE (Agenda.Nombre) LIKE '" & Me.TxtBuscar.Text & "*'"
AQUI VIENE EL FALLO ¿ Se le puede pasar una SQL a la propiedad Rowfilter del Dataview?
Me.Grid1.Text = "Buscar Nombre: " & Me.TxtBuscar.Text
Me.Grid1.DataSource = oDataview
Valora esta pregunta


0