I am relatively new to VBA and have roots in TCL and 'C'. I was trying to
generalize a program by stuffing column names in an array and then using
array elements in a statement. For example:
Dim I As Integer
Dim Array(2) As String
Array(0) = "Contract Date"
Array(1) = "Paid Date"
Array(2) = "Some other date"
For I =0 To 2
If IsNull(rstTable!Array(I)) Then
Do Something
End If
Next I
Well, clearly it isn't working. I get a message saying that
rstTable!Array(I) is not a member of the group.
Is it possible to construct such a loop in VBA and get the substitution I
want?
Rick