The way you are doing it is very long winded,

why not just run a truncate table command;

vb Code:
  1. If ResetTable(tablename) = True then
  2.  'do stuff
  3. End If
  4.  
  5.  
  6. Public Function ResetTable(TableName as string) As Boolean
  7.  
  8. On Error GoTo errorhandler
  9.  
  10. Set adocom = New adodb.Command
  11.  
  12.  
  13. adocom.CommandText = "Truncate Table " & TableName
  14. adocom.CommandType = adCmdText   ' set the command type
  15.  
  16. adocom.ActiveConnection = CurrentProject.Connection' set the active connection
  17. adocom.Execute
  18.  
  19.  
  20. ResetTable = True
  21.  
  22. Set adocom = Nothing
  23.  
  24.  
  25. Exit Function
  26. errorhandler:
  27.     ResetTable = False
  28.  
  29. End Function