Results 1 to 2 of 2
  1. #1
    aquarius is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    5

    String to Copy a Field of Data to Another Table


    Happy Friday,

    I'd like some help in identifying the proper string of vba code to copy a field of data from one table to another. Ideally I'd like the data to populare in the first field and the existing data be moved over to the right one field.

    What function or string of functions would best execute this?

    Is this feasibly or would it be better to just populate the new data to the right? It will be ordered by time so I imagine as long as it is in order either way should be okay. Thanks again to all that have helped me thus far, I'd be stuck in a rut if it wasn't for y'alls kind assistance.

    aquarius

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Either option you choose is going to require using recordsets. You can use the UPDATE query I suppose, but if you're going to have to store data in a variable in order to move it after an initial copy is done in an overwriting effort, using the query won't work, especially if you're executing it in code.

    Try opening the recordset and writing the values in.

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

Similar Threads

  1. Copy form field to another table
    By Dega in forum Forms
    Replies: 6
    Last Post: 05-21-2010, 02:57 PM
  2. Replies: 2
    Last Post: 04-02-2010, 07:42 AM
  3. Create Hash - Copy File to string
    By andrew_ww in forum Programming
    Replies: 0
    Last Post: 03-20-2010, 02:14 AM
  4. Data won't show up in table field
    By texzen123 in forum Forms
    Replies: 3
    Last Post: 11-26-2009, 11:20 AM
  5. copy data from text file into table in access
    By miziri in forum Programming
    Replies: 3
    Last Post: 08-12-2009, 03:02 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