Restrict Table Field to Specific Text Values

RHONDAK72

Board Regular
Joined
Dec 26, 2007
Messages
133
I use Access 2010. Is there a way to restrict a table's field to specific field values. Let's say I have a table called "Fruits" with the field "Type". I want the user to only be able to specify one of these values for the "Type" field:

apple
banana
grapes
kiwi
pear

Is there a way to restrict it so that the user cannot specify anything else except for the one of the 5 values above within the actual table?

Thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
There sure is!

Open the table in Design View, and select that Field.
In the Field Properties, go to the Lookup tab.
Enter the following properties:
- Display Control: Combo Box
- Row Source Type: Value List
- Row Source: apple;banana;grapes;kiwi;pear
- Limit To List: Yes
- Allow Value List Edits: No
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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