Yes its possible, but its not something you want to do. Before I explain, you need to understand some terms and concepts. A field is a logical division of a record in a table that holds a discrete piece of data. When designing a table you need to create fields that store the smallest piece of data. So a person's name would be broken into at least first and last name fields. Generally I use 5 fields for people names; Salutation (Mr, Ms, etc.) First, Middle, Last and Suffix (Jr, Sr, etc.). A control is an object on a form or report that displays data. A control can display the content of a field in a table (or a column in a query) or it can display the result of an expression. Similarly, a column in a query can display either a field in a table or the result of an expression.
So, you do not want to create a field in a table that has the full name. That is redundant data. A principle of relational database design is to eliminate redundant data. If you want to DISPLAY a person's full name, you do that using an expression. To do so, you would set the ControlSource property of a control on a form or report to:
=[Firstname] & " " & [Lastname]
or you can add a column to a query:
Fullname: [Firstname] & " " & [Lastname]
You can also use an expression like:
[Lastname] & ", " & [Firstname]
to display the name in the format Smith, John a common way to list full names for sorting.
|