Validation rules in Access

  Gary Wood 11:53 24 Feb 2006

One of the fields in a table in my Access database is a lookup field which allows users to select a value from a drop down list of the records in another table.

Can anyone tell me how I can validate the input to make sure that even if the user types a value into the box instead of selecting from a dropdown, the value is still one of those featured in the drop down list?

  Crunchy 13:48 24 Feb 2006

Go into the properties of your combo dropdown box and make sure "Limit to List" is set to Yes should do the trick.

  Belatucadrus 17:21 24 Feb 2006

Or open the table relationships and tick "Enforce referential integrity"

  keith-236785 17:45 24 Feb 2006

or write a small bit of VB code along the lines of

AllowEdit = false

for the dropdown box so they cant type anything into it....limiting them to only the items available in the dropdown.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best Amazon Echo: What’s the best Alexa speaker?

Kano Computer Kit Complete review: A fun DIY 'laptop' that teaches kids to code

Best pro photo editors for Mac 2018

TV & streaming : comment regarder les Jeux olympiques d’hiver 2018 ?