how do I combine two columns to create a third column

G

Guest

I am trying to combine data from two columns to create a unique ID that
populates a third column.

Ex. Auto number field + Company Name = LocationID
 
R

Rick B

You would not populate a new column. If you want a compound key for your
table, just click VIEW and INDEXES while you are in design view.

You can then create an index name and select the first field.
On the next line, leave the name blank and select your next field.
Then set the Unique property.

This will create a compound index.

Rick B
 
D

Duane Hookom

Generally a bad idea to store a value that can be derived. Do you have a
solid reason to save the combined value?
 

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