In a with statement can you refer to a field header using a variable?
With rsNoun
.MoveFirst
Do Until .EOF
If !jde = strAJDE Then
.Edit
!strName = strinfo (here is where I am trying it. )
.Update
End If
.MoveNext
Loop
End With
The strHead is passed to this function from another. The strName is a match for a column name in the table rsNoun. After it updates the field that has the same name as strName with strInfo it will go back to the other function and get a new strName and strinfo bring down.
Thanks for any ideas Keith
With rsNoun
.MoveFirst
Do Until .EOF
If !jde = strAJDE Then
.Edit
!strName = strinfo (here is where I am trying it. )
.Update
End If
.MoveNext
Loop
End With
The strHead is passed to this function from another. The strName is a match for a column name in the table rsNoun. After it updates the field that has the same name as strName with strInfo it will go back to the other function and get a new strName and strinfo bring down.
Thanks for any ideas Keith