Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I have two fields that i need to combine into a new field, i.e.,

Field1 Field2 = Field3
Main St. = Main St.

How can I do this?

Thanks in advance..
 
Use the ampersand

=field1 & field2

you can do this via a query or a form you can't do this using the tables default value
 
...just a little refinement on the previous response
= [Field1] & [Field2] will result in combining the two as one string without spaces. For example MainSt.
= [Field1] & " " & [Field2] will add a space in between to give you Main St
 
You can do it like this. This will display field2 and field3 with a space separating field1 and field2.

SELECT field2& ' ' &field3
FROM TableName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top