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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merging two fields into one

Status
Not open for further replies.

matpj

Technical User
Mar 28, 2001
687
GB
Hi,

in addition to my post earlier I need to set one field up using data from two others (hyphen seperated)

e.g.

field1 field2 derived_field
UKE0323 Project3 UKE0323 - Project3

how is this possible?

 
In a query:

SELECT YourTable.field1, YourTable.field2, [Field1] & " - " & [field2] AS Derived_Field
FROM YourTable;

On a form set an unbound text box's control source to:

[Field1] & " - " & [field2]

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top