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!
  • Students Click Here

*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

wildcard query in approach

wildcard query in approach

wildcard query in approach

I designed a database in Access but then had to change it into Approach. I had a query set up whereby the user would enter the text they wanted to find into a popup window and Access would search the relevant field, automatically inserting a wildcard either side of the text. Is there any way to set up something similar in Approach so I don't have to keep typing in *'s??


RE: wildcard query in approach

Yes, you can use a variable type field for the user to type into. Lets call this field VarText. Define it as variable type with data option set to "text". Put it on a view and put some text into it that will result in at least one matching record.

Now you can set up the FIND manually by clicking the Find button on a view and then type this formula into a text field on the view (form or worksheet):

If(Position(Upper(yourtargetfield),Upper(VarText),1) > 0)

After the Find runs, you can give it a name by typing over the <current find/sort> on the Action Bar. Once it has a name, you can define a macro to take the user to the popup form and let the person type into the field. You can then run the Find macro "on data change" of the VarText field or provide a button for the user to click when they are ready.

Sue Sloan

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