Option Explicit
Public lngAcknowledgementLasped As Long
Public lngAcknoledgementClose As Long
Public lngInfoRequestLasped As Long
Public lngInfoRequestClose As Long
Public sumLasped As Long
Public strLasped As String
Function stageLaspe()
lngAcknowledgementLasped = DCount("fldApplicationStageId", "tblApplicationstage", _
"fldStage =" & 2 & " And fldDuedate <" & Chr(35) & Date & Chr(35) & " And isnull(fldDateCompleted)")
sumLasped = lngAcknowledgementLasped
If lngAcknowledgementLasped <> 0 Then
strLasped = lngAcknowledgementLasped & " applications has passed acknowledgement period" & vbCrLf
End If
End Function
|