K
Kon
How can I use the bellow code using conditions
If code > 104 And code < 134 Or code = 101 Or code = 102 Then
Function residual(sign As Integer, code As Byte, price As Double, rs as
DAO.recordset) As Double
rs.FindFirst "[recid]=" & Forms!customermove!RecID
Do Until rs.BOF
residual = residual + rs("price") * rs("sign")
rs.MovePrevious
Loop
End Function
If code > 104 And code < 134 Or code = 101 Or code = 102 Then
Function residual(sign As Integer, code As Byte, price As Double, rs as
DAO.recordset) As Double
rs.FindFirst "[recid]=" & Forms!customermove!RecID
Do Until rs.BOF
residual = residual + rs("price") * rs("sign")
rs.MovePrevious
Loop
End Function