steveob Posted December 10, 2004 Posted December 10, 2004 I have a field named "Regions" in which there is one region named "South England" and another "SW England and South Wales". When I do a find on "South England", the find is returning both regions, presumably because the word "South" is in both. Is there a way of finding only exact matches? I had presumed that the find would only find the region which begins with "South". I have solved it temporarily by changing "SW England and South Wales" to "SW England and S Wales" but would prefer to go back to the original if possible. Any advice much appreciated.
-Queue- Posted December 10, 2004 Posted December 10, 2004 You can either put it in quotes or add == in front of it.
QuinTech Posted December 10, 2004 Posted December 10, 2004 Use quotes in the search. "South England" instead of South England. HTH, Jerry
-Queue- Posted December 10, 2004 Posted December 10, 2004 That used to be my nickname. Don't take it in vain!
steveob Posted December 11, 2004 Author Posted December 11, 2004 Thanks for the replies. The field is a drop down box from which I select "South England" etc. As this field is transferred to other layouts, I do not want it to have "Quotes" automatically. When I do the find, I cannot seem to insert the quotation marks after selecting the region from the drop down box. Have tried to right click and cut and then type in "South England" with quotes but that does not work. Could I introduce another region, "South England" with the quotes, purely for find purposes or would that affect the other layouts? Any more suggestions gratefully received. Steveob
-Queue- Posted December 11, 2004 Posted December 11, 2004 Assuming you are using a scripted find, Set Error Capture [On] Enter Find Mode [Pause] If [not IsEmpty(Region)] Set Field [Region, "==" & Region] Perform Find [Replace Found Set] If [not Status(CurrentFoundCount)] Show Custom Dialog ["There are no records with that criteria."] End If
steveob Posted December 13, 2004 Author Posted December 13, 2004 Thanks for all the replies. I tried my own suggestion in my previous post and added another region with inverted commas, purely for doing finds Used this for the find and all went perfectly. Thanks for the sample script Carpal Tunnel, I'm sure it would have worked! Until the next time, thanks again everyone. Steveob
Recommended Posts
This topic is 7284 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now