Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Aug 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    delete SQL statement doesn't work (Access 2000)

    DELETE Table WHERE filename = x;
    I get a message about a missing operator. What's wrong with this SQL statement?

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: delete SQL statement doesn't work (Access 2000)

    If you want to delete a table you don't need SQL.
    Use :
    <pre>DoCmd.DeleteObject acTable,"MyTable"</pre>

    If you want to use SQL, use this SQL statement :
    <pre>DROP TABLE MyTable</pre>

    Francois

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •