Hello,
=Nz(Sum([field1]),0)
If we want to write this expression in vba, then what coding will be used?
Secondly,
I am using this procedure for my combo box to show records of sub form.
It working fine. But when the combo is empty and I press enter then it give error :3021 no current record.Code:Private Sub CBOBATCH_AfterUpdate() 'Find the that matches the control Dim rs As Object Set rs = Me.Recordset.Clone rs.FindFirst "[batchno]='" & Me![CBOBATCH] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark End Sub
how to resolve this problem?
Thanks