Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    3

    Delete query, deleting customers froma table.

    Hi
    I have a table of customers and appointments.
    How can I use a delete query to delete costomers from the database who have not made an appointment for more than a year?



    Thanks
    Keith

  2. #2
    StepUP is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Dec 2005
    Posts
    99
    In the delete query have a criteria for the appt date field where the date is less than 1 year from today. You could do this a few different ways. One way would be to simply use Date() - 365. You could also use the "DateAdd" function.

  3. #3
    Join Date
    Feb 2006
    Posts
    3

    Thanks

    Thanks John, I did use the Date()-362

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

Similar Threads

  1. Replies: 0
    Last Post: 08-25-2008, 12:17 PM
  2. Problem Deleting Records with ADO
    By bdicasa in forum Programming
    Replies: 0
    Last Post: 08-21-2008, 09:27 AM
  3. Help me please w/ combining like customers
    By lsulaurie in forum Queries
    Replies: 2
    Last Post: 06-30-2008, 02:59 PM
  4. Delete all records in a table?
    By bob646 in forum Access
    Replies: 1
    Last Post: 05-20-2007, 11:41 PM
  5. Deleting Spaces
    By grgerhard in forum Import/Export Data
    Replies: 2
    Last Post: 04-30-2006, 06:42 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