Visual Basic - consulta jeraquica

Life is soft - evento anual de software empresarial
 
Vista:

consulta jeraquica

Publicado por Suicide_Solution (1 intervención) el 21/12/2006 20:55:38
estoy utilizando el "DATA ENVIRONMENT" en Visual Basic 6.0 para
realizar esta consulta..

SELECT PERSONAS.NOMBRE, APORTES.BOLETA, APORTES.FECHA, APORTES.MONTO,
TIPOAPORTE.DESCRIPCION FROM PERSONAS, APORTES, TIPOAPORTE WHERE
PERSONAS.CODIGO = APORTES.COD_SOCIO AND APORTES.COD_APORTE =
TIPOAPORTE.CODIGO AND (APORTES.FECHA = C_FECHA) ORDER BY APORTES.FECHA

y la llamada a esta consulta es la siguiente:

With de_datos.Commands("APORTEFECHA")
.CommandType = adCmdText
.Parameters(0).Value = c_buscadofec.Value
.Execute
End With

Hasta aqui funciona todo bien..

Ahora necesito sumar el campo "APORTES.MONTO". Tengo entendido de que
se debe crear en la pestaña "Agregado" dicha funcion..

Alguien me podria decir o facilitar alguna direccion de como hacer la
llamada
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