Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete query (Access 2000)

    I want to delete all the orders from the table orders except thise orders where customerid = 213.However my delete query is not accepted:
    DELETE orders.*, orders.customerid
    FROM orders INNER JOIN [order details] ON orders.orderid = [order details].OrderID
    WHERE (((orders.customerid)<>213));
    What is wrong with my query ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Delete query (Access 2000)

    Why don't you remove the order details table from the query?

    If that doesn't help: what error do you get?

  3. #3
    Star Lounger
    Join Date
    Sep 2002
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Delete query (Access 2000)

    Thanks a lot! I have removed it and now it is OK!

Posting Permissions

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