Two parts to this question, but first background:
Access 2003
Linked table (ODBC) with a 2-character text field
Values stored in the field are numbers
The first number represents relationship: mother, father, grandmother, husband, wife, other
The second number is a modifier, if you will, of the relationship - natural, step, foster, in-law
Field values can look like this:
21
11
2
8
<blank>
22
7
Problem 1: Sometimes there is one number in the field, sometimes two. This presents a problem when trying to parse the second number because Right([field],1) only works correctly if there are 2 numbers in the field. I know I need some sort of If/then type statement to evaluate whether there is one or two numbers in the field, but I can't seem to get my brain around how to do that.
Problem 2: Then, once the number(s) are separated, I need to assign the text values to them. I'm pretty sure I have this part figured out, but isn't working because of Problem #1.
Appreciate any suggestions. Thanks!
Access 2003
Linked table (ODBC) with a 2-character text field
Values stored in the field are numbers
The first number represents relationship: mother, father, grandmother, husband, wife, other
The second number is a modifier, if you will, of the relationship - natural, step, foster, in-law
Field values can look like this:
21
11
2
8
<blank>
22
7
Problem 1: Sometimes there is one number in the field, sometimes two. This presents a problem when trying to parse the second number because Right([field],1) only works correctly if there are 2 numbers in the field. I know I need some sort of If/then type statement to evaluate whether there is one or two numbers in the field, but I can't seem to get my brain around how to do that.
Problem 2: Then, once the number(s) are separated, I need to assign the text values to them. I'm pretty sure I have this part figured out, but isn't working because of Problem #1.
Appreciate any suggestions. Thanks!