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...