bamodeo
10-21-2003, 10:44 AM
I'm trying to find a value within a memo field of an Access database. I tried using the inStr function as follows:
If inStr(rsProfile.Fields("Interests").Value, "football") > 0 then
<< do stuff >>
End if
I get an error when executing this code against "Interests" which is a memo field. If I convert the field to a text field, it works. However when I convert the field, I lose everything beyond 255 characters.
Can someone help with the code to find a string within a memo field?
Thanks!
If inStr(rsProfile.Fields("Interests").Value, "football") > 0 then
<< do stuff >>
End if
I get an error when executing this code against "Interests" which is a memo field. If I convert the field to a text field, it works. However when I convert the field, I lose everything beyond 255 characters.
Can someone help with the code to find a string within a memo field?
Thanks!