Results 1 to 2 of 2
  1. #1
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286

    Using Count with Delete Query

    Hello i have a table that looks like this:


    Click image for larger version. 

Name:	pictable.JPG 
Views:	7 
Size:	74.1 KB 
ID:	6543

    i want to create a delete query where it will count rows with the same Channel ID and Due Date, and if the count is > 1, then delete.

    the output should be ONE row with ONE channel ID with that particular Due Date. thanks

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You don't seem to care about losing the other data, such as Date Requested?

    Make a copy of the table, structure only.
    Create an append query that groups on those two fields and append to the new table.
    Create an update query to update the rest of the fields, linking both tables with the two fields.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  2. Trying to Delete record using delete query
    By MooseOTL in forum Access
    Replies: 13
    Last Post: 10-04-2011, 02:30 AM
  3. Replies: 11
    Last Post: 03-30-2011, 01:08 PM
  4. Delete Query
    By stan.chernov@gmail.com in forum Queries
    Replies: 3
    Last Post: 09-17-2010, 04:10 PM
  5. Delete Query
    By jgelpi16 in forum Queries
    Replies: 2
    Last Post: 09-14-2010, 12:16 PM

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