A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Modify table based on ID



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2005, 05:46 PM
ChuckW
external usenet poster
 
Posts: n/a
Default 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  
Old September 13th, 2005, 10:37 PM
KARL DEWEY
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 01:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.