AT Search

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Jeff_Ward
Posts: 19
Joined: Tue Oct 10, 2017 12:44 pm

AT Search

Post by Jeff_Ward » Mon Apr 05, 2004 12:01 pm

How can I search a memo field for a work using the "AT" command. It does not appear to work correctly____AT("Alcohol",events->narrative) ____Shows incorrect syntax

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: AT Search

Post by kfleming » Wed Apr 07, 2004 7:59 am

At will only work with character fields.__To test whether a memo contains a particular string you can use the $ operator to test if the string is contained in the memo.__For example you might use:____IIF("Alcohol"$,events->narrative,"This record matches","This one does not match") ____The catch is that you can only do a true/false test on the value you are testing. You cannot return the partial contents of the memo depending on where in the memo the string is present.____Kathleen__R&R Support

Jeff_Ward
Posts: 19
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: AT Search

Post by Jeff_Ward » Wed May 19, 2004 12:23 pm

I tried that exact expression and it did not work. I get a syntax error. ____>At will only work with character fields. __>To test whether a memo contains a particular string you can __>use the $ operator to test if the string is contained in the __>memo. __>For example you might use: __>__>IIF("Alcohol"$,events->narrative,"This record matches","This __>one does not match") __>__>The catch is that you can only do a true/false test on the __>value you are testing. You cannot return the partial __>contents of the memo depending on where in the memo the __>string is present. __>__>Kathleen __>R&R Support __

Rick_W_Johnson_(Guest)
Posts: 22
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: AT Search

Post by Rick_W_Johnson_(Guest) » Wed May 19, 2004 1:01 pm

I think you need to remove the comma after the dollar sign in the IIF statement.

Post Reply