Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a Value in an Empty field [200 Records]

Status
Not open for further replies.

Maillme

Technical User
Mar 11, 2003
186
NL
Hi there,

I have a table with 2000 records,

i want to create a new field called "Name"

I want this to be equal to the value from "label" & "artist"

So, if:

label = 1
artist = Test

I want Name = 1 Test

I have imported my data, and have added the "Name" field - but i now want to update this field to include the above, but don't know how.

Access 2003.

many thanks,
Neil
 
First, why do you want to add a field that can be calculated from two other fields. This is generally considered bad practice.

Second, if you [red]really[/red] need to do this, change the name of the name field from name to something that is more descriptive and isn't a reserved word. Perhaps [LabArt].

If you want to do this once, create an update query t
Code:
UPDATE [with 2000 records]
SET LabArt = [label] & [artist]
WHERE LabArt Is Null;

[red]Again, I wouldn't do this.[/red]

Duane
Hook'D on Access
MS Access MVP
 
hi there,

thanks for the reply.

The reason im doing it is because i want to export the date from my database to a csv file, which will then update an online shop.

I need to "join" the 2 fields to make the title of my product.

thanks again,
Neil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top