Results 1 to 3 of 3
  1. #1
    adrianf44 is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Apr 2018
    Posts
    11

    Edit a previous record when checking in/out inventory


    I have a database that tracks inventory by creating a new record (changing the status from Checked Out to Checked In and placing the current date) when a piece of inventory is checked out and then creates another record when the inventory is checked in. I would like it to add the checked out date to the original record, and only create a new record when the piece of inventory is checked out again.

    Reason being is I would like to have a query is shows Checked In date Is Null so it only displays items currently Checked Out. Right now it will show ALL previous records of the item being Checked Out.

    Any additional info please ask. Thanks!

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    When you check out you create a new record (append query) and write the date and/or time to the CheckedOut date field. When you check it in, you Update the record (Update query) and write the date/time to the CheckedIn field. Both operations are acted upon the item id.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    adrianf44 is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Apr 2018
    Posts
    11
    Thanks for that help! I think i got it working, maybe not the best way but does what i need. I have the update query write the CheckInDate in a record where the SerialNumber = SerialNumber selected and CheckInDate is Null

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

Similar Threads

  1. Replies: 8
    Last Post: 04-27-2017, 03:25 PM
  2. Replies: 2
    Last Post: 07-21-2015, 05:09 AM
  3. Replies: 1
    Last Post: 05-31-2013, 08:53 AM
  4. Next Problem: Edit Previous updates
    By Moridan in forum Access
    Replies: 4
    Last Post: 05-07-2013, 01:54 PM
  5. Checking a record in a table
    By widstje in forum Programming
    Replies: 4
    Last Post: 11-07-2007, 11:28 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