Results 1 to 6 of 6
  1. #1
    elmister is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    12

    moving data

    Hello fellow Access Gods,

    I have a little issues. How could i move one record from one table to another table when a criteria is met. example.

    Table1 : has three fields. serial , field1, feild2,

    Table2: serial , field1, feild2,



    Then a form that user could pull up or enter the info of serial , field1, feild2. Mind you that Field1 and Two are entered in stages .

    I need to make it so that when serial and field1 and field2 are true. Then Have the DB somehow move that record to Table2.

    Is this posible.


    Any guidance will help thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    It seems that you have not normalized your tables.
    see http://en.wikipedia.org/wiki/Database_normalization

    No apparent reason for having the same fields in 2 different tables.

  3. #3
    elmister is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    12

    moving data

    This was a example.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Please ask your question and use a real data example.

  5. #5
    elmister is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    12
    Orange,
    Sorry, I just thought by keeping it simple it would be easier to understand. I just need a boost, i could modify it and make it work with our current system. No need to display our database to strangers. thanks anyways.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    You can try this Make Table syntax
    Select
    Serial
    ,field1
    ,field2
    INTo MyNewTable
    From MyExistingTable
    You should not feel that because I was asking for actual field names that you were exposing your database. We're here to help/advise. It impedes communication when people deal in generalities. A sample of an issue expedites communication. Although you may be extremely familiar with your situation/environment, the rest of us are often guessing at what you have, what you need and how much experience you have.

    Good luck with your project.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-05-2011, 12:46 PM
  2. Moving data between tables
    By seeter in forum Programming
    Replies: 1
    Last Post: 08-13-2010, 08:08 AM
  3. Moving from vs 07 to vs 97
    By Kilroy2.0 in forum Access
    Replies: 4
    Last Post: 06-04-2010, 08:42 AM
  4. Moving data from one table to another?
    By Maverick1501 in forum Access
    Replies: 2
    Last Post: 03-15-2010, 08:08 AM
  5. Moving data within....
    By mulefeathers in forum Queries
    Replies: 0
    Last Post: 10-22-2009, 08:14 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