Results 1 to 2 of 2
  1. #1
    EBean is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2019
    Posts
    1

    Replacing rows with data from another table

    Hi,
    I used to be pretty good at using Access, but it's been about 10 years, and it's not coming back to me as easily as I had hoped.

    I have to run a report based on two Tables, but some rows from the 1st Table have to be replaced with data from the 2nd Table, but in a very particular order. Is there a way to do this?



    So the first table is a sample of people and answers to questions, and the other table is an oversample of people, in case there are exclusions to the first table. Both tables will have exactly the same data fields.

    So say our people are sorted by last name in both tables. There's a field called "Exclusion" (Yes or No). If the answer is "yes" in this field, I need to replace that particular member with a member from the oversample.
    The first exclusion in Table 1 is on row 4, and the next exclusion is in row 15.
    I need a report or macro or something to replace row 4 in Table 1 with Row 1 in Table 2, and replace row 15 in Table 1 with Row 2 in Table 2.
    and so on and so forth until there are no exclusions in Table 1 anymore.

    I feel like this is probably really simple, but my brain is apparently mushy from not doing this for so long. Any help is greatly appreciated!

    -E

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    update query.
    bring in both tables to the query , join on key, replace fields needed.

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

Similar Threads

  1. Replies: 22
    Last Post: 12-20-2015, 02:46 AM
  2. Replies: 5
    Last Post: 08-25-2015, 08:39 AM
  3. Replacing data in a field.
    By darrellx in forum Queries
    Replies: 4
    Last Post: 08-21-2011, 10:33 AM
  4. Compiling Data, Not Replacing
    By helpaccess in forum Access
    Replies: 12
    Last Post: 03-08-2011, 03:13 PM
  5. Replacing data in Table
    By JackT in forum Import/Export Data
    Replies: 1
    Last Post: 08-23-2010, 10:34 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