combine two or more fields in access

R

Roadwarrior1

I am trying to combine two or more fields in access query to display (Smith,
J. K.) in one field. I have all three fields in my tables but the first and
last names are spelled out. How can display only the first character in each
name?
 
B

boblarson

In a query you can use

AbbrevName:[LastName] & ", " & Left([FirstName],1) & ". " &
Left([MiddleName],1)

Be sure to substitute the parts in square brackets with your actual field
names AND remember to KEEP the square brackets.

--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________
 
B

boblarson

Oops, forgot the last period:

AbbrevName:[LastName] & ", " & Left([FirstName],1) & ". " &
Left([MiddleName],1) & "."

--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________


boblarson said:
In a query you can use

AbbrevName:[LastName] & ", " & Left([FirstName],1) & ". " &
Left([MiddleName],1)

Be sure to substitute the parts in square brackets with your actual field
names AND remember to KEEP the square brackets.

--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________


Roadwarrior1 said:
I am trying to combine two or more fields in access query to display (Smith,
J. K.) in one field. I have all three fields in my tables but the first and
last names are spelled out. How can display only the first character in each
name?
 
R

Roadwarrior1

Thanks this was a big help. It works great.

boblarson said:
Oops, forgot the last period:

AbbrevName:[LastName] & ", " & Left([FirstName],1) & ". " &
Left([MiddleName],1) & "."

--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________


boblarson said:
In a query you can use

AbbrevName:[LastName] & ", " & Left([FirstName],1) & ". " &
Left([MiddleName],1)

Be sure to substitute the parts in square brackets with your actual field
names AND remember to KEEP the square brackets.

--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________


Roadwarrior1 said:
I am trying to combine two or more fields in access query to display (Smith,
J. K.) in one field. I have all three fields in my tables but the first and
last names are spelled out. How can display only the first character in each
name?
 

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