guamlet
Board Regular
- Joined
- Dec 29, 2002
- Messages
- 145
I have a form that asks users to type an identifying catalog string in a field. There are other fields below the name that contain drop down boxes for age, species, etc. When a user enters an catalog number, I want access to look at the characters before a period and compare them to all the names in a table. If the first four characters match the first four in that table, I want it to copy the age, species, etc from the table into the appropriate fields in the form.
Example:
Samples H004a. and H004.a.2b came from the same animal (H004a), so if a user takes a new sample from that same animal, they would write in the field H004.a.2b.3c. After they exit that field, I want access to compare all the samples in the table holding the sample names and look for the H004a and copy the age and species to the appropriate boxes in the form.
I was thinking of using a separate query for each field (age, species, etc) that would return the value when the criteria was met. I can't figure out how to use something similar to Left(
Guamlet