Combining data in a table/field

G

Guest

Can I combine data from 2 different fields into a new field? For example,
and I combine the text fields LAST_NAME and FIRST_NAME into a new field
called EMPLOYEE NAME automatically each time information is entered into the
first 2 fields.
 
J

Joseph Meehan

DV said:
Can I combine data from 2 different fields into a new field? For
example, and I combine the text fields LAST_NAME and FIRST_NAME into
a new field called EMPLOYEE NAME automatically each time information
is entered into the first 2 fields.

I would not recommend that. Rather than store all that data, why not
create a query and have a dynamic EMPLOYEE NAME field. That would be
[LAST_NAME]&" "&FIRST_NAME] Access will like that better and in the even
you some woman marries and changes that last name you will not have your
data out of sync.
 
D

Douglas J Steele

I'd recommend using &, not +.

If either [fname] or [lname] are Null, [fnane]+" "+[lname] will result in a
Null value, even if the other value isn't Null.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


dalaw said:
Yes, in a query

flnme: [fnane]+" "+[lname]

DV said:
Can I combine data from 2 different fields into a new field? For example,
and I combine the text fields LAST_NAME and FIRST_NAME into a new field
called EMPLOYEE NAME automatically each time information is entered into the
first 2 fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top