Results 1 to 4 of 4
  1. #1
    donnan33 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    52

    Append/Delete Queries

    I have an append query and a delete query. The append asks a parameter (like employeename) when appending. I want to be able to append the to my archive table and then delete same person from original table without having to give the same parameter twice.....right now I have them running one then oterh but I have to type in the name twice for both queries.....



    Is there a way to run it and only have to type name in once?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You could have the user type the parameter into a form textbox and have both queries get it from there.

    By the way, it is often not a good idea to do archive data. Usually you'd just have a "status" field of some sort in a single table. That let's you query active employees, old employees or both, just by adjusting criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    donnan33 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    52
    Thanks, I am just trying to get rid of old employees from my employee list when they leave then . i do want to save them in a separate table then delete them from my list. I also have other fields i will be needing o remove expired wo's from my list save them in another table and then delete them from the lookup list. what would be the best way to do this?????

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    If you want to use the second table then the append and delete queries are probably the best way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Append Queries
    By HunterEngineeringCoop in forum Queries
    Replies: 8
    Last Post: 12-12-2012, 01:10 PM
  2. Replies: 1
    Last Post: 12-29-2011, 05:51 PM
  3. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  4. #Deleted issue with Delete/Append Query
    By WendyCha in forum Access
    Replies: 4
    Last Post: 08-05-2011, 08:34 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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