J
John Marshall, MVP
Is there a faster method of deleting all records than:
Set rst = CurrentDb.OpenRecordset("CnvAddress")
For i = 1 To rst.RecordCount
rst.Delete
rst.MoveNext
Next i
rst.Close
Set rst = Nothing
I'm testing conversion routines and I need to empty the tables before
refreshing them.
John... Visio MVP
Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Set rst = CurrentDb.OpenRecordset("CnvAddress")
For i = 1 To rst.RecordCount
rst.Delete
rst.MoveNext
Next i
rst.Close
Set rst = Nothing
I'm testing conversion routines and I need to empty the tables before
refreshing them.
John... Visio MVP
Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm