Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2004, 05:43 PM
Authorized User
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query Problem with a field string

Thanks for your interest.

I have about 12000 records where I need to search a field for the word StFund. How do I go about setting up the criteria to find all the incidences where the word Stfund occur. Below is a sample of 5 records of data that this field has in it. I highlighted the word to show how burried it can be.

1 StFund
2 VillanovaInsCoA8plpd,wc,GoldenstFundEagleauto,LegionInsA
3 StarnetInsA8plpd,auto,AmGuarantee&LiabA8excess,StfundB++13wc
4 StarnetInsA8plpd,auto,AmGuarantee&LiabA8excess,stfundB++13wc
5 St.FundVirginiaSuretyA-9plpd,auto,wc,AmGuaranteeA+14ex

Thanks for your help.


 
Old November 19th, 2004, 04:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SELECT Table1.MyField, InStr([MyField],"StFund") AS Expr1
FROM Table1
WHERE (((InStr([MyField],"StFund"))>0));

You will have to adjust the criteria for your oddities like St.Fund (cf StFund). Hope this helps.

Best wishes,

Clive Astley
 
Old November 19th, 2004, 05:12 PM
Authorized User
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That worked perfectly.

Thank you Clive






Similar Threads
Thread Thread Starter Forum Replies Last Post
string compare in table field alxtech SQL Server 2000 1 April 27th, 2007 12:25 AM
Query string problem sathish_reddy ASP.NET 2.0 Basics 0 February 23rd, 2007 08:18 AM
Help with DropDownList on String Value Field reidcor BOOK: ASP.NET Website Programming Problem-Design-Solution 1 May 31st, 2005 08:44 AM
Assigning string to a number field p_gauri7 Crystal Reports 3 December 10th, 2004 10:43 AM
Select Query String Problem phungleon SQL Server 2000 8 June 9th, 2004 05:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.