Answered by:
can't search string of numbers in Outlook 2010

Question
-
I have a custom form with custom fields. One field is a string of 5 or 6 numbers (Claim check numbers). The numbers are in the field but they are not searchable. How can you search for a specific 5 digit number and not get them all?
- Edited by jkek1234 Thursday, July 30, 2015 10:55 AM
Thursday, July 30, 2015 10:33 AM
Answers
-
Hello,
What code do you use for searching numbers?
Did you associate custom fields with user properties?
Anyway, you can use the Find/FindNext or Restrict methods of the Items class to get the job done. See Filtering a Custom Field for sample queries.
You can read more about these methods and find a sample code in the following articles:
How To: Use Find and FindNext methods to retrieve Outlook mail items from a folder (C#, VB.NET)
How To: Use Restrict method to retrieve Outlook mail items from a folder
- Proposed as answer by Fei XueMicrosoft employee Friday, July 31, 2015 6:53 AM
- Marked as answer by Fei XueMicrosoft employee Friday, August 7, 2015 8:38 AM
Thursday, July 30, 2015 10:49 AM -
Hi Jkek1234,
As far as I know, Outlook doesn't support search the custom field from the UI. We can develop an custom solution like Eugene suggested. And the link provide in the preview thread is also very helpful for we implement the custom solution:
How to: Ensure that Custom Item Properties Are Supported in Folder-Level Queries.If you want Outlook to support searching for the custom fields, I suggest that you submit the feedback from link below:
Submit Feedback - Microsoft SupportRegards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Fei XueMicrosoft employee Friday, August 7, 2015 8:38 AM
Friday, July 31, 2015 6:52 AM
All replies
-
Hello,
What code do you use for searching numbers?
Did you associate custom fields with user properties?
Anyway, you can use the Find/FindNext or Restrict methods of the Items class to get the job done. See Filtering a Custom Field for sample queries.
You can read more about these methods and find a sample code in the following articles:
How To: Use Find and FindNext methods to retrieve Outlook mail items from a folder (C#, VB.NET)
How To: Use Restrict method to retrieve Outlook mail items from a folder
- Proposed as answer by Fei XueMicrosoft employee Friday, July 31, 2015 6:53 AM
- Marked as answer by Fei XueMicrosoft employee Friday, August 7, 2015 8:38 AM
Thursday, July 30, 2015 10:49 AM -
Hello
I appreciate the reply but I'm not a code writer. I was hoping for a simple solution. I want to search for a specific claim check number (Example: 01494) in a field that has numbers from 00001 to 99999 or 01000 to 999999.
Thanks
Thursday, July 30, 2015 11:09 AM -
I didn't answer your question. I did associate it with properties. Had it as text and had it as number using raw.
Thursday, July 30, 2015 11:24 AM -
> I appreciate the reply but I'm not a code writer.
See Getting Started with VBA in Outlook 2010 .
Be aware, the forum is for developers. I'd recommend asking non-programming questions on the Outlook IT Pro Discussions or Microsoft Community forums instead.
Thursday, July 30, 2015 2:07 PM -
Hi Jkek1234,
As far as I know, Outlook doesn't support search the custom field from the UI. We can develop an custom solution like Eugene suggested. And the link provide in the preview thread is also very helpful for we implement the custom solution:
How to: Ensure that Custom Item Properties Are Supported in Folder-Level Queries.If you want Outlook to support searching for the custom fields, I suggest that you submit the feedback from link below:
Submit Feedback - Microsoft SupportRegards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Fei XueMicrosoft employee Friday, August 7, 2015 8:38 AM
Friday, July 31, 2015 6:52 AM