dbTalk Databases Forums  

combine 2 fields into 1 field

comp.database.ms-access comp.database.ms-access


Discuss combine 2 fields into 1 field in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew
 
Posts: n/a

Default combine 2 fields into 1 field - 10-21-2003 , 04:21 PM






How do I combine data from two fields into one field? Specifically, I
have two fields for LastName and FirstName and a field for FullName.
When new data is entered into LastName and FirstName in a form, I want
it to automatically go to FullName too. I can do this with an update
query, but is there a way to do it automatically without an update
query? Otherwise I'll be constantly doing update queries.

Reply With Quote
  #2  
Old   
Jack
 
Posts: n/a

Default Re: combine 2 fields into 1 field - 10-21-2003 , 06:57 PM






I'm interested in this too, except I want to divide the names...from one
field containing two first names into two fields containing one name each...

Jack
"Andrew" <AndrewEgan (AT) att (DOT) net> wrote

Quote:
How do I combine data from two fields into one field? Specifically, I
have two fields for LastName and FirstName and a field for FullName.
When new data is entered into LastName and FirstName in a form, I want
it to automatically go to FullName too. I can do this with an update
query, but is there a way to do it automatically without an update
query? Otherwise I'll be constantly doing update queries.



Reply With Quote
  #3  
Old   
Jack Stockton
 
Posts: n/a

Default Re: combine 2 fields into 1 field - 10-22-2003 , 04:59 PM



Have you tried adding code to the OnChange event of both controls something like
Me!FullName = Me!FirstName & " " & Me!LastName

Jack

AndrewEgan (AT) att (DOT) net (Andrew) wrote in message news:<be34760c.0310211321.5e059fc5 (AT) posting (DOT) google.com>...
Quote:
How do I combine data from two fields into one field? Specifically, I
have two fields for LastName and FirstName and a field for FullName.
When new data is entered into LastName and FirstName in a form, I want
it to automatically go to FullName too. I can do this with an update
query, but is there a way to do it automatically without an update
query? Otherwise I'll be constantly doing update queries.

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.