I have field names in an array fname
I have the following code in a subroutine
[Ranking].Value = assessment() ' where '[Ranking]' is a field in the curent recordset
.....my function assessment attempts to read the value from the field whose name is an element in the array
Function assessment()
For I = 0 To UBound(fname) - 1
assessment = assessment + Me.Recordset(fname(I))
Next
End Function
Me.Recordset(fname(I)) keeps returning null
any ideas or pointers to where this may have already been answered?