Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function dSumRecordset(Expression As String, RecSet As DAO.Recordset, Optional Criteria As String = "") As Integer
On Error GoTo errlbl
If Not Criteria = "" Then
RecSet.Filter = Criteria
Set RecSet = RecSet.OpenRecordset
End If
Do While Not RecSet.EOF
dSumRecordset = dSumRecordset + (Nz(RecSet.Fields(Expression), 0))
RecSet.MoveNext
Loop
Exit Function
errlbl:
MsgBox Err.Number & " " & Err.Description
End Function