Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Dec 2000
    Location
    Hellertown, Pennsylvania, USA
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete Query (Acc2000)

    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.

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Delete Query (Acc2000)

    Have you tried use DMax in your WHERE clause? Something like:
    <pre>WHERE DMAX("OrderDate","Orders","CustomerID=" & CustomerID)<#1/1/99#</pre>

    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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