• Delete Query (Acc2000)

    • This topic has 1 reply, 2 voices, and was last updated 23 years ago.
    Author
    Topic
    #370671

    I have to delete all records in a main table that have a maximum date in a many table.
    Ex., For each member that has not ordered anything since 01/01/99, delete this member.

    I’m stumped….

    Thanks for any help as to how to accomplish this. A delete query does not allow a Max function, or I’m not doing something correctly.

    Viewing 0 reply threads
    Author
    Replies
    • #587014

      Have you tried use DMax in your WHERE clause? Something like:

      WHERE DMAX("OrderDate","Orders","CustomerID=" & CustomerID)<#1/1/99#
    Viewing 0 reply threads
    Reply To: Delete Query (Acc2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: