×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Approach String search

Approach String search

Approach String search

(OP)
I am trying with difficulty) to produce a search using a variable.
How can I produce a find that will look for a string of characters within a field.
i.e. I have a variable '@varfind', it is filled with the surname 'thomas'.
My find needs to look for the word 'thomas' anywhere within the 'Name' field.
The data is imported to the application with variations such as Mr Thomas, Miss C A Thomas, Sir John Thomas QC, etc.

I would like the find to work from a macro and use a table to display the results. I have tried combining a '*' with @varfind but this does not work. Yet it will work as a straight forward find. Somehow I can't build a variable with a * in front.
Rob











RE: Approach String search

Go to find then find assistant.  Click next, then click on your field and then "contains the character(s)" then put thomas in the value then done.  Hope it works for you.

RE: Approach String search

(OP)
Thankyou for your reply,
My problem is that I want to do a search using a variable field. If I , for example enter, "schlossy" in the variable field how then do I ensure that "schlossy" is found anywhere in the field not just at the beginning?
I am trying to automate the search from a form view that contains the variable.
Thanks

RE: Approach String search

Find using variables is the answer.

1) enter a value that will be valid into your varfind field.

2) go into Find mode on the form where you want to do the Find and enter this condition into any text-type field on the form:

If(Position(namefield,varfind,1) > 0)

3) press Enter or click OK to complete the Find.

4) give your Find a name by typing over the "current find/sort" on the action bar and press Enter.

That should do it!

Sue Sloan
http://www.xpertss.com

RE: Approach String search

(OP)
Sue Sloan,
Thankyou so much , my search is now working a dream
It's great to have your guidance.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close