Field that is made up by concatenating two other fields in the same table

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,340
Office Version
  1. 365
Platform
  1. Windows
I am Very new to Access, so please keep that in mind if you reply.

I have a table where I want one of the fields to concatenate fields

Fields "Sector/Division" & "Corporation"

I want to do the Excel equivalent of

If "Sector/Division" is not null Then
x=Concatenate(Sector/division,", "Corporation)
Else
x=Corporation
End If.....

Thanks. Much appreciated.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Is your intention to get rid of the "Sector/Division" field altogether (i.e. make this a permanent change), or are you just looking at doing this for the purposes of one query, report, etc.?
 
Upvote 0
No, I cannot get rid of Sector. When a user is entering a new customer to the Tables, some times they do not have both the division of the company and the corporate name. Example Lockheed, Missiles and Guidance Systems. Lockheed has hundreds of divisions. So I need to know both. But then there are going to be times where the person entering data doesn't know the Division at the time of entry or may never know (some corporations don't have division).
 
Upvote 0
OK, then you just want to do that as a calculated field in a query, and that calculation would look like:
Code:
IIf([Sector/Division] Is Null,[Corporation],[Sector/Division] & [Corporation])
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top