Visual Basic - DataEnvironment

Life is soft - evento anual de software empresarial
 
Vista:

DataEnvironment

Publicado por Daesty (1 intervención) el 29/11/2004 18:48:28
Como puedo cambiar la select de un comando del dataenvitonment en tiempo de ejecucion, teniendo en cuenta:
En diseño: \"select * from Res\"

en ejecución:

Dataenv.Commands(\"tblRes\").CommandText = (\"SELECT * FROM res WHERE baja = true\")
Datenv.Commands(\"tblRes\").Execute

Esto no me funciona.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:DataEnvironment

Publicado por bla (230 intervenciones) el 30/11/2004 20:39:15
He probado esto y funciona perfectamente.
With DataEnvironment1
.Connection1.Open
With .Commands("command1")
MsgBox .CommandText
MsgBox .Execute.Fields(0).Value
.CommandText = "select * from localizaciones"
MsgBox .CommandText
MsgBox .Execute.Fields(0).Value
End With
.Connection1.Close
End With
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar