Results 1 to 2 of 2
  1. #1
    neill_long is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    9

    Delete query to delete records that meet criteria

    I have two tables. One of borrowers, the other of items. One borrower can borrow multiple items. When items have been returned, they are ticked and date returned filled in.



    These returned items need to be deleted at the end of the month.

    I am trying to set up a delete query that will do the following:

    1. Delete borrower and items as long as all items have been marked returned

    2. Only delete the returned items and not the borrower if there are still items borrowed

    3. Delete borrower if there are no items borrowed at all.

    Probably something simple that's staring me in the face but I can't work it out. Can anyone help?

    Thanks
    Alistair

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    sounds like 4 delete queries, using the key on the form.
    each query would use criteria for the delete

    the last query deletes the master record.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 12-13-2016, 09:48 AM
  2. delete records from datevalue criteria
    By enfapro7 in forum Queries
    Replies: 5
    Last Post: 10-04-2016, 04:34 AM
  3. Delete does not delete records in evey table
    By LaughingBull in forum Access
    Replies: 5
    Last Post: 09-01-2015, 04:05 PM
  4. Query for records that do not meet criteria
    By survivo01 in forum Queries
    Replies: 3
    Last Post: 12-16-2012, 05:45 PM
  5. Replies: 2
    Last Post: 01-24-2012, 02:16 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums