S
swedbera
How would you loop through fields and update null values to zero's in vba?
If it was only one field, I would run a query or write an SQL statement.
I've seen many posts similar, but I can't get it to work. Here is my code.
With rst
Do Until .EOF
For I = 0 To rst.Fields.Count - 1
If rst.Fields(I).Value = Null Then
rst.Fields(I).Value = 0
rst.Update
End If
Next I
.MoveNext
Loop
.Close
End With
Please help me with this
Arlene
If it was only one field, I would run a query or write an SQL statement.
I've seen many posts similar, but I can't get it to work. Here is my code.
With rst
Do Until .EOF
For I = 0 To rst.Fields.Count - 1
If rst.Fields(I).Value = Null Then
rst.Fields(I).Value = 0
rst.Update
End If
Next I
.MoveNext
Loop
.Close
End With
Please help me with this
Arlene