Results 1 to 2 of 2
  1. #1
    Basil is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    2

    Changing record status from Active to Obsolete and creating a duplicate record

    I have records that contain a "revision number" field and a "status" field. I want to be able to change a records status from valid to obsolete but at the same time create a duplicate of the record where I change the revision number to a new number and keep the new record as valid. Hope this makes sense. I'm a relative newbie so if I could do it with a query it would be great but a macro is possible as a last resort.

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    You need two queries:
    a) Update query to change the Status field to False
    b) Append query to add the new 'duplicate' record with the changed revision number value
    Having said that, it goes against standard database design principles to duplicate data
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 2
    Last Post: 02-28-2019, 03:49 PM
  2. Replies: 1
    Last Post: 09-10-2018, 01:26 PM
  3. Replies: 14
    Last Post: 08-01-2013, 09:46 PM
  4. Replies: 3
    Last Post: 03-09-2013, 10:39 AM
  5. Replies: 1
    Last Post: 07-28-2011, 09:30 AM

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