PC Review


Reply
Thread Tools Rate Thread

Combines fields

 
 
=?Utf-8?B?RGF2aWRqYzUy?=
Guest
Posts: n/a
 
      25th Jan 2006
We have a customer table in access, with separate fields for the first name
and last name. I need an additional field that combines these 2 fields. Is
there a way to do this without end user input, so the field is filled when
data is entered into the first and last name field?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      25th Jan 2006
Hi,

The LAST thing that you need is another field in the table. What you do is
create something like below every time you need the combined names in a
query, form, or report:

FullName: [FirstNameField] & " " & [LastNameField]
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Davidjc52" wrote:

> We have a customer table in access, with separate fields for the first name
> and last name. I need an additional field that combines these 2 fields. Is
> there a way to do this without end user input, so the field is filled when
> data is entered into the first and last name field?

 
Reply With Quote
 
Rick B
Guest
Posts: n/a
 
      25th Jan 2006
You don't do that. That would be redundant. What if someone gets married
or divorced? You would then have to maintain two fields.

The proper way to handle this is to keep your table exactly as it is. Then,
in your FORMS, QUERIES, and REPORTS you can display the name as you mention.
If you want to display it as last,first in a form, for example, add a new
unbound text box to your form and put the following in it...

=[LastName] & ", " & [FirstName]

If you want to do this in a query, create a new "virtual" field in your
query by going to a new column and entering the following in your query...

[CombinedName]: [LastName] & ", " & [FirstName]

You would then be able to use the new "field" name of [CombinedName] in any
report or form based on this query.

For more details, do a search. You are asking a ver common (and basic)
question and you should be able to find hundreds of posts out here that talk
about it. In the future, you should search for your answer before posting.
That is why the old posts are retained.

Good luck,

--
Rick B



"Davidjc52" <(E-Mail Removed)> wrote in message
news:22E21543-7C2B-47A1-955E-(E-Mail Removed)...
> We have a customer table in access, with separate fields for the first
> name
> and last name. I need an additional field that combines these 2 fields. Is
> there a way to do this without end user input, so the field is filled when
> data is entered into the first and last name field?



 
Reply With Quote
 
=?Utf-8?B?RGF2aWRqYzUy?=
Guest
Posts: n/a
 
      25th Jan 2006
Thanks. I will do that.

"Rick B" wrote:

> You don't do that. That would be redundant. What if someone gets married
> or divorced? You would then have to maintain two fields.
>
> The proper way to handle this is to keep your table exactly as it is. Then,
> in your FORMS, QUERIES, and REPORTS you can display the name as you mention.
> If you want to display it as last,first in a form, for example, add a new
> unbound text box to your form and put the following in it...
>
> =[LastName] & ", " & [FirstName]
>
> If you want to do this in a query, create a new "virtual" field in your
> query by going to a new column and entering the following in your query...
>
> [CombinedName]: [LastName] & ", " & [FirstName]
>
> You would then be able to use the new "field" name of [CombinedName] in any
> report or form based on this query.
>
> For more details, do a search. You are asking a ver common (and basic)
> question and you should be able to find hundreds of posts out here that talk
> about it. In the future, you should search for your answer before posting.
> That is why the old posts are retained.
>
> Good luck,
>
> --
> Rick B
>
>
>
> "Davidjc52" <(E-Mail Removed)> wrote in message
> news:22E21543-7C2B-47A1-955E-(E-Mail Removed)...
> > We have a customer table in access, with separate fields for the first
> > name
> > and last name. I need an additional field that combines these 2 fields. Is
> > there a way to do this without end user input, so the field is filled when
> > data is entered into the first and last name field?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make a GUI to combines PDF's mycool_is Webmaster / Programming 0 4th Feb 2010 12:22 AM
Funciton that Combines 3 or more Arrays =?Utf-8?B?RXhjZWxNb25rZXk=?= Microsoft Excel Programming 2 20th Feb 2006 02:46 PM
Is there any way to have a folder that combines Inbox and Sent? =?Utf-8?B?dGltam95Y2U=?= Microsoft Outlook Discussion 3 15th Dec 2005 12:25 AM
add a new field that combines firt and last name =?Utf-8?B?SmF5?= Microsoft Access 1 9th Sep 2005 04:20 AM
need to build a query that combines wildcards Guy Story Microsoft Access Queries 2 23rd Jun 2005 03:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 PM.