I have a table DRB Exemptions that consists of a date, address info, notes, and a person’s initials. I’ve set up the table to record the street address information into discrete fields–street number, street direction, street name, street type and unit number. I also have a separate Street Names table. In this table I’ve separated the information into street name and street type (among other fields.) The DRB Exemptions table resides in a folder on my Y: network drive. The Street Names table resides in a folder on my R: network drive. In order to reduce data entry errors, I’d like to have the SitusName field in DRB Exemptions validate against the StrName field in the Street Names table. There are several hundred street names, so I don’t want to present the user with a pick-list of names. I want him to type a name, then hit enter or Tab, then have Access issue a warning if the name is either typed incorrectly or was not found. I don’t seem to be able to figure this out. I tried using this expression:
DLookUp(“[StrName]”,”[Street Names]”)
in the Validation Rule property for the SitusName field in DRB Exemptions, but I got an error message and it didn’t work. I’ve looked at my Access 2000 manual, I’ve searched the Access 2003 online help, I’ve searched this forum and don’t see an answer. The two tables are zipped together in the attached file. Hopefully someone can help me.
Jeff