Visual Basic - CAMBIAR PARAMETROS A UN DATAENVIRONMENT

Life is soft - evento anual de software empresarial
 
Vista:

CAMBIAR PARAMETROS A UN DATAENVIRONMENT

Publicado por MAURICIO (5 intervenciones) el 15/01/2004 23:34:04
Alguien me puede ayudar explicándome como cambio los parametros de un data environment en tiempo de ejecucion
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:CAMBIAR PARAMETROS A UN DATAENVIRONMENT

Publicado por Chino (17 intervenciones) el 16/01/2004 11:10:34
Hola
Con esto creo q te funcionara:

If DataEnvironment1.rsCommand1.State Then
DataEnvironment1.rsCommand1.Close
End If
' Pasamos los parametros al dataenvironment
DataEnvironment1.Commands("Comand1").Parameters("Param1").Value = Parametro

DataEnvironment1.Commands("Comand1").Parameters("Param2").Value = Parametro

If DataEnvironment1.Recordsets("Command1").RecordCount = 0 Then
MsgBox "No hay"
Else
DataReport.Refresh
DataReport.Show
End If

Suerte
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