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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

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