I'm trying to update a table with a for next loop.
I've found I can read datga from the table, but can't write data to it.
With rst1
.AddNew
For x = 1 To Teller1 - 1
If x = DateNo Then
!Fields(x).Value = Now()
elsif
Else
!Fields(x).Value = dblCurrency(x)
End If
Next x
.Update
End With
I get the error 3265, no such element in collection. I use the same code to get the field names that works fine:
fielddescription(x) = rst1.Fields(x).Name
where am I missing the ball???
I've found I can read datga from the table, but can't write data to it.
With rst1
.AddNew
For x = 1 To Teller1 - 1
If x = DateNo Then
!Fields(x).Value = Now()
elsif
Else
!Fields(x).Value = dblCurrency(x)
End If
Next x
.Update
End With
I get the error 3265, no such element in collection. I use the same code to get the field names that works fine:
fielddescription(x) = rst1.Fields(x).Name
where am I missing the ball???