在Access 2013中,我正在编写报告。使用 On print event
,每次日期字段为空时,我都会尝试向变量添加一个值。它工作正常 somaValores =Somavalores + 1
试着 IIF
但它不起作用。
有任何想法吗?
Private Sub Detalhe_Print(Cancel As Integer, PrintCount As Integer) Select Case Me!TipoMeta Case "Percentagem" Select Case Me!DtResposta Case Is Me!DtLimite ForaPrazo = ForaPrazo + 1 ********************************************************* DTLIMITE IS A DATE TYPE FIELD HERE I NEED: CASE DTLIMITE = NULL THEN CONTA = CONTA + 1 ********************************************************** End Select Case "Valores absolutos" SomaValores = SomaValores + 1 Case "Data" End Select End Sub