I'm creating a user-defined function. As part of this function I need to sum the total values of a field, [Qty]. However, I can't figure out how VB sums values over multiple records. The following code produces an error message "Sub or function not defined."
Dim intResult As Integer
Dim vrQty As Variant
vrQty = Me.Qty
intResult = Sum(vrQty)
Does VB not support the 'sum' function or am I missing a reference as the help file suggests?
[This message has been edited by Abby N (edited 08-30-2000).]
Dim intResult As Integer
Dim vrQty As Variant
vrQty = Me.Qty
intResult = Sum(vrQty)
Does VB not support the 'sum' function or am I missing a reference as the help file suggests?
[This message has been edited by Abby N (edited 08-30-2000).]