Caro Richard,
Tentei com o código que me passaste o resultado do somatório da grade e não consegui, porém um colega já me tirou a dúvida com o código descrito abaixo.
select sum(valorcont)from contrato;
where licita_id = licitacao.licita_id;
into array resultado
thisform.text2.value = iif(type("resultado[1]")#"N",0,resultado[1])
Mas se você consegui me passar mais informações sobre seu código ficaria grato, pois talvez eu não tenha sabido usar.
- Minha tabela pai é LICITACAO;
- Munha tabela filho é CONTRATO;
- O campo a ser somado é VALORCONT;
Um abraço
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only