Validation rules in Access

  [DELETED] 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?

  [DELETED] 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"

  [DELETED] 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

Microsoft Surface Book 2 15in review

Iglooghost's hyper new music video gives a mutant take on Monument Valley

The best Amazon Prime Day Apple deals 2018

Comment ajouter de la musique à une présentation Google Slides ?