Ola Amigos
Estou usando o VB6 com Crystal 7 e usando a sequencia abaixo :
strFormula = "{REL_PROC.TBREL_VENCIMENTO}>= DATE(" & Year(CDate(dtpInic)) & "," & Month(CDate(dtpInic)) & "," & Day(CDate(dtpInic)) & ")"
strFormula = strFormula & " AND {REL_PROC.TBREL_VENCIMENTO}<= DATE(" & Year(CDate(dtpFIM)) & "," & Month(CDate(dtpFIM)) & "," & Day(CDate(dtpFIM)) & ")"
strFormula = strFormula & " AND IsNull{REL_PROC.TBREL_DTPAY}"
Meu problema esta apenas aqui : strFormula & " AND IsNull{REL_PROC.TBREL_DTPAY}"
Preciso comparar a data com Nulo, para quando ela nao estiver preenchida e esta retornando um erro, sem essa comparacao para a data Nula, funciona perfeitamente.
Obrigado e um Abraço