June 5, 200718 yr If we have the following in our DB: 603-900055-201 and I do a Find for 603900055201 it does not find the part. Is there a way I can make that work because it's kind of a pain..?? I can't seem to find any wildecards that will make it work. Any info would be great. thanks!
June 5, 200718 yr what if you created a field that was a calculation. Filter( SerialNumber ; "0123456789") And then you could search on the field with numbers only. Would that work?
June 5, 200718 yr Author My experience with searching in calculation fields is not good...takes forever to load a single search. If there's another way it'd be better.
June 5, 200718 yr You could create an auto-calculation instead of just a calculation. Just make sure that you uncheck "Do not replace existing value of field (if any)"
June 5, 200718 yr A stored calculation field would get indexed, and searching it should be no different than searching a text field. If your field is standardized to the ###-######-### format, you could have a script format the request in the same way.
June 6, 200718 yr 603-900055-201 and I do a Find for 603900055201. I can't seem to find any wildecards that will make it work. search on the field with numbers only. Filter( SerialNumber ; "0123456789") If your field is standardized to the ###-######-### format, you could have a script format the request in the same way. Yes but it would require User inputting the entire part number otherwise how would script know position to generically wildcard the remainder? I would prefer a less rigid approach. DrewAngel, since you are creating a calculation to hold the raw numbers (although the field should be text) then why not give your Users a break and accept any string in any position within the field? The calc does not have to be on the form; you can still let Users search your partNumber field. Script might then look like: Set Error Capture [ On ] Enter Find Mode [ pause ] [color:gray]the Users type what they are searching Set Field [ theCalc ; "*" & Substitute ( partNumber ; "-" ; "" ) & "*" ] Set Field [ partNumber ; "" ] Perform Find [ ] If [ not Get ( FoundCount ) ] ... no records Else ... records found End If This script is a bit more forgiving: they can accidently enter the dash and it will be ignored; they can remember only part of the number and it will be found regardless, and it will be quicker for your Users to enter instead of a long numeric string. It's just another option ... only you can decide which might work best in your situation. LaRetta :wink2:
Create an account or sign in to comment