If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Modify table based on ID
Hi,
I have a table that I import from another access database. It has field in it that include Name, ID, Weekly Target etc. That is a person in the table that appears twice but has two different IDs. For instance, the person's name is Joe Smith who has an ID of JS1 and JS2. What I want to do is to write a Query that modifies this table and has The name of Joe Smith with the ID of JS2 changed to Joe Smith - Retail. The other Joe Smith can remain the same. The following week I will import the table again and then run some type of append query that will make this change once again. Can anyone help with this? Thanks, -- Chuck W |
#2
|
|||
|
|||
For your name field use this and modify to fit your field names --
NameCheck: Iif([ID]="JS2" and [Name]="Joe Smith", "Joe Smith - Retail",[Name]) "ChuckW" wrote: Hi, I have a table that I import from another access database. It has field in it that include Name, ID, Weekly Target etc. That is a person in the table that appears twice but has two different IDs. For instance, the person's name is Joe Smith who has an ID of JS1 and JS2. What I want to do is to write a Query that modifies this table and has The name of Joe Smith with the ID of JS2 changed to Joe Smith - Retail. The other Joe Smith can remain the same. The following week I will import the table again and then run some type of append query that will make this change once again. Can anyone help with this? Thanks, -- Chuck W |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Options Group | Patty Stoddard | Using Forms | 19 | August 4th, 2005 02:30 PM |
Table Design | A. Williams | Database Design | 3 | April 29th, 2005 07:02 PM |
Here's a shocker | Mike Labosh | General Discussion | 2 | October 26th, 2004 05:04 PM |
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. | HDW | Database Design | 3 | October 16th, 2004 03:42 AM |
COMPARE THE TWO TABLES | Stefanie | General Discussion | 0 | June 4th, 2004 04:36 PM |