greetings
What is the best way in VBA to move down a column until the first null is encountered? (this isn't necessarily the last record in the table).
I'm using the following code now. It works fine, but it seems an inefficient method in very large tables. For example, I might have to move down 500,000 records before I find an 'absent' value of "Test".
...
rs.MoveFirst
Do While Not IsNull(rs("Test"))
rs.MoveNext
Loop
... .Edit / .Update code here to assign a value of "Test"
much thanks, teach314
What is the best way in VBA to move down a column until the first null is encountered? (this isn't necessarily the last record in the table).
I'm using the following code now. It works fine, but it seems an inefficient method in very large tables. For example, I might have to move down 500,000 records before I find an 'absent' value of "Test".
...
rs.MoveFirst
Do While Not IsNull(rs("Test"))
rs.MoveNext
Loop
... .Edit / .Update code here to assign a value of "Test"
much thanks, teach314