The Simple (but questionable) solution:
(in strict accordance with OP's question)
- Create a new table
- Add the column which you want to control by a combobox and give it a column name and the
Text type.
- Make sure that the appropriate column is selected and then click the
Lookup tab page in the MS Access table designer
- Change the
Display Control from TextBox to Combo Box
- Select
Row Source Type = Value List
- Enter the following for
Row Source: Child,Adult
Since you probably want to leverage the fact that MS Access is a relational database, you could also have the have the Child and Adult alternatives as rows in a separate AgeCategory table. In order to connect the rows in this table with your combo box you would have to use other Lookup settings. This I leave as an excercise to you.
EDIT: As HansUp is pointing out, it is really not a very good solution define this combo box lookup along with the table definition.
This is probably a better approach for a real world solution:
- Create your table
- Create a new form which uses your table as data source
- Add a combo-box to the form and specify the row sourcing for it
- Switch the Form to
Datasheet View. A form in Datasheet View looks exactly like the type of row editor which you get when you double-click on a table.