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!

Population of third attribute

Status
Not open for further replies.

pudgie

Technical User
Apr 4, 2002
4
GB

In MS Access, how is it possible to populate an attribute
(FIELD3) with 2 others (FIELD1+FIELD2)combined as in below:

FIELD1:999
FIELD2:777

FIELD3:999777

Can this be set up in the table design area?
 
I would use an update query. Start a new query, add the table to it, change it to an update query, add FIELD3 to the design grid and put the following in the Update To box:

[FIELD1] & [FIELD2]

With the criteria box empty, it should update all instances of FIELD3 with the conents of the appropriate FIELD1 and FIELD2 values concatenated. Have fun! :eek:)

Alex Middleton
 
Pudge, you can do it exactly as Alex says, but I'd question the need to STORE this concatenation of values. Can't you just join them in a select query when you need to?

Creating the concatenated field in an update query opens up the Pandora's box of data management and synchronicity. (NOT the old Police album...)

Ex-JimAtTheFAA
78.5% of all statistics are made up on the spot.
Another free Access forum:
More Neat Access stuff at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top