Concatenate name fields

D

DeanLinCPR

I have a 2007 DB with first and last name fields. I am trying to merge them
in a common field I know it is unusual. I have created a select query that
works but I cannot get to update the table

SELECT [MembershipAndData]![FirstName] & " " &
[MembershipAndData]![LastName] AS [MemberName]
FROM MembershipAndData;

Any hellp would be appreciated
 
J

John W. Vinson

I have a 2007 DB with first and last name fields. I am trying to merge them
in a common field I know it is unusual. I have created a select query that
works but I cannot get to update the table

SELECT [MembershipAndData]![FirstName] & " " &
[MembershipAndData]![LastName] AS [MemberName]
FROM MembershipAndData;

Storing derived data such as this in your table accomplishes
three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact.

Just redo the calculation whenever you need it, as a
calculated field in a Query just as you're now doing it. The calculated field
can be used in a Form or Report, it can be exported, it can be used for
sorting or searching, or for anything that you could use a table field
(anything but editing, which you would generally NOT want to do).

If you have some special reason for violating the rules in this way please
post back and explain.
 

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