How can I add the following to the code mentioned below.
=DSum("SBalance","001AAFSleBal")
The Text Box Name is SleTBal where DSum value will Show.
CODE:
Private Sub cboDateFrom_LostFocus()
If IsNull(DLookup("[SBalance]", "[001BBA]", "IsNull([SBalance]) = FALSE")) = False Then
OpenBalance.Value = DLookup("[SBalance]", "[001BBA]", "IsNull([SBalance]) = FALSE")
Else
OpenBalance.Value = 0
End If
End Sub