Hi
I have a problem deleting table thru VBA. Here's how I do it :
VB Code:
  1. t_file.Open "File", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
  2.  
  3. If t_file.EOF = False Then
  4.     Do
  5.     t_file.Delete
  6.     t_file.MoveNext
  7.     Loop Until t_file.EOF
  8. End If
  9.  
  10. t_file.Close
  11. Set t_file = Nothing

The problem is that if the table is too big, it tells me that the number of lock file is too big. Is there another way or a problem with what I am doing.

Thanks for helping