M
MartyO
Hi there,
I have a field that is populated by a survey in Sharepoint where the user
can select mulitple answers relating to school grades. When I import the
data into my Access database it comes in like this "6; 7; 8; 9; 10; 11; 12"
or another user may have selected these "K; 1; 2; 3; 4; 5; 6; 7; 8" etc.
My code looks at the Field using the InStr function, if it finds say grade
"7" in the field, I write a record to another table using that grade.
The problem is with grades 10, 11 and 12 and grade 1. Using the InStr
function, when it searches for a 1, it will think it's found grade 1 when in
fact it's found grade 11.
Is there a way in the InStr function to make it find "exactly" what you are
searching for, grade 1?
Thanks in advance!
marty
I have a field that is populated by a survey in Sharepoint where the user
can select mulitple answers relating to school grades. When I import the
data into my Access database it comes in like this "6; 7; 8; 9; 10; 11; 12"
or another user may have selected these "K; 1; 2; 3; 4; 5; 6; 7; 8" etc.
My code looks at the Field using the InStr function, if it finds say grade
"7" in the field, I write a record to another table using that grade.
The problem is with grades 10, 11 and 12 and grade 1. Using the InStr
function, when it searches for a 1, it will think it's found grade 1 when in
fact it's found grade 11.
Is there a way in the InStr function to make it find "exactly" what you are
searching for, grade 1?
Thanks in advance!
marty