|
Concatenating Fields Combobox.
Just in case you do not know what concatenate means, it means to join or link items together as one. So, in Microsoft Access it means to join two or more fields together to create a new field, with the total of the fields joined together. You can also add text, etc.
For this example of concatenating fields combobox, we will use two fields, ‘Surname’ and ‘FirstName’, just interchange these field names with the ones you wish to use.
First of all, add a combo box to your form, following the Wizard, choosing the above two fields.
Then right click on the combo box and select ‘properties’ from the drop down list to open the properties window.
With the properties window open click on the data tab.
Then, place your cursor next to ‘Row Source’. Two buttons will appear. Click on the ‘…’ button. This will open the query underlying the combo box. It should have the two fields, as per above, and is also likely to have your primary key field.
In the query design grid, in the first available column in the ‘Field’ row, type the following:
NewField: [Surname] & “, ” & [FirstName]
|