Jump to content
Sign in to follow this  
mattc

Using 'Not' Operators

Recommended Posts

Is it possible to use the NOT operator in a text field or emulate this using a script?

I am trying to do a multiple find using the following scenario:

User Name (txt field)

Location (txt field)

I want to find all records in ..... (Location), but NOT ..... (User).

Share this post


Link to post
Share on other sites

Enter Find mode, type your criteria in the location field. Create a new find request (ctrl-N or apple-N). Then, type your criteria in the user field. Check the omit box on this second request. Perform the Find.

You can automate this using a script as well.

Tom

tom@tgparker.com

Share this post


Link to post
Share on other sites

Thanks Tom

When automating the Find Request, how using a script can you omit the results from one of the searches - my database also hides the status area which displays this choice.

What i really want is a check box field within my layout which effectivily acts as the hidden omit option.

Any ideas

Share this post


Link to post
Share on other sites

Two steps. You can have a global field formatted as a checkbox for the user to indicate they wish to omit a particular value (a "not" find). In your scripting to implement this you will need to 1) toggle the status area to "show", enter the data from the find request (set field steps), and finally use the "Omit" script step. In Find mode this has the effect of checking th omit box in the status area. The status area MUST be visible for this script step to work correctly. After the find completes, you can then hide the status area once again.

-bd

[ January 03, 2002: Message edited by: LiveOak ]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.