Create a field from another field

vavs

Well-known Member
Joined
Jul 2, 2004
Messages
514
I have a field in a table that I link to a Lotus Notes database. The field is formatted Name/Location/CostCenter/Business Unit.

What I want is just the Name portion of the field. In Excel I can do a formula =Left(Cell((find("/",Cell,1)-1))) and get what I need. I just do not have a clue as to how to do the same thing in Access. Also, I cannot add a field to a linked table, so I will have to do a make table or append table query. I am not sure whether this is an advantage or not.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
looks like maybe you answered the question I had for you on the other thread (http://www.mrexcel.com/board2/viewtopic.php?t=287751)

you can break it out in a query using the following expression:

Left([some_field],InStr([some_field],"/")-1)

whether you want to make a new table or just reference the query in your subsequent queries is up to you. I personally am not a big fan of queries on top of queries though.

hth,
Giacomo
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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