Results 1 to 3 of 3
  1. #1
    ajs112 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    14

    Wink Moving records fluidly between tables

    Hi all,



    I'm completely new to the whole access world and found this place to be incredibly helpful thus far. I thank everyone in advance for any help they might offer!

    Some background: I'm just a dumb firefighter with little programming experience and am designing a database to keep track of a state's surplus fire property to be doled out to volunteer departments as I see fit.

    I have a table for surplus property that includes what department currently has the surplus property, what type of equipment it is and additional equipment information. I also have a table for "pending transfer property" to track what pieces of property I have decided to potentially assign to a fire department from the state's surplus inventory.

    My problem comes when I need to transfer a piece of equipment from one department to another. I would like the surplus property table to automatically remove the property from the surplus property table to the pending transfer table so that it will not be listed on a pending transfer and in the states surplus at the same time. On the flip side, if a transfer falls through I'd like that record to repopulate in the surplus inventory again.

    I'm sure this is clear as mud, and as I'm new to database keeping as well as Access I appreciate any help, ideas, or rearrangements I could make. I'm open to everything, just keep in mind you may have to explain in layman's terms as I'm not a programmer.

    Thanks all,

    A dumb fireman!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    You would build a macro that has
    an append query to take the item from 1 table to the other.
    then a delete query to remove if from the source table.

    Then another macro to do the same in reverse.

    But I think youd have an inventory table where nothing gets deleted, and an owership table that has the Inventory key and the owner.
    This way no inventory is actually deleted, just the ownership keys are changed, or empty.
    (tables)
    tInventory
    tHouses (or whatever you call the places where inventory goes) these records never get deleted
    tOwners (what house owns what Inv. these records will add / delete all the time)

  3. #3
    ajs112 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    14
    Awesome! I appreciate the input. I had a sneaking suspicion that queries would solve my problem, so off to research queries it is!

    Yeah, there is a national database that keeps track of the assigned state inventory and where it is housed. For my purposes I'm just keeping track of what departments have excess that is still with them and marking it as available to be assigned to other departments. (This all happens outside the national database and is just for my records) Then, if a transfer occurs or we sell it I log into the national database and update the final records there. This is just so I can keep track of pending orders before I change the records completely and not necessarily keep track of every piece of equipment we have given out.

    Thank you much!

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

Similar Threads

  1. Moving between tables
    By tostgulen in forum Access
    Replies: 6
    Last Post: 12-31-2012, 10:42 AM
  2. Moving Tables from one database to another
    By fishthirty in forum Access
    Replies: 3
    Last Post: 11-21-2012, 04:20 PM
  3. Replies: 4
    Last Post: 04-12-2012, 02:38 AM
  4. moving tables between databases
    By TheShabz in forum Programming
    Replies: 4
    Last Post: 11-15-2010, 05:54 PM
  5. Moving data between tables
    By seeter in forum Programming
    Replies: 1
    Last Post: 08-13-2010, 08:08 AM

Tags for this Thread

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