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

    Too few parameters (Access 2000)

    I have tried to build a function that deletes all the records from the table Orders that are not present in the table Orders1.However
    i receive the message Too few patameters.Can somebody show me my mistake?
    My function is called FncScrap but unfortunately it is not working


    Public function FncScrap()
    Dim Scrap As String
    Scrap = " DELETE FROM Orders WHERE OrderID IN (SELECT Orders.OrderID FROM Orders LEFT JOIN Orders1 ON Orders.ID = Orders1.OrderID WHERE

    ((Orders1.OrderID) Is Null))"
    CurrentDb.Execute Scrap

    End Function

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

    Re: Too few parameters (Access 2000)

    You have Orders.ID instead of Orders.OrderID in the join.

Posting Permissions

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