Robert L. Stewart
rl_stewart at highstream.net
Mon Oct 31 12:50:17 CST 2005
Sheri, Actually, if you build each string you want to search for: "123 4567" (a) "123.4567" (b) "123-4567" (c) "1234567" (d) And use a "Like a or like b or like c or like d", you can find exactly what you want. As for bolding, there is no way of doing that without using a 3rd party tool like FMS's memo editing tool which would give you full RTF type capability within the memo field. And then it would be a lot of coding to find the string and then bold it. Robert At 10:41 AM 10/31/2005, you wrote: >Date: Mon, 31 Oct 2005 16:31:51 +0000 >From: "Mark A Matte" <markamatte at hotmail.com> >Subject: Re: [AccessD] Search Memo field for number string >To: accessd at databaseadvisors.com >Message-ID: <BAY103-F5DD33C5CA5EE2C0AE606ED26C0 at phx.gbl> >Content-Type: text/plain; format=flowed > >Sheri, > >I can't help with the Bold part...but on the search...I'm guessing you are >looking at a phone number...or some other 2 part number sequence...either >way...you can seperate your number into two pieces of criteria ( 2 fields on >a form )...and the place something like: >Like "*" & [Forms]![frmTest1]![NumPart1] & "*" & >[Forms]![frmTest1]![NumPart2] & "*" > >in the MemoField Criteria or your query. The problem with this...is that >the query doesn't care if there is 1 or 1000 characters between the >numbers...it still returns the records. > >Hope it gives some direction. > >Thanks, > >Mark A. Matte > >From: "Sheri Hixson" <sdhi at kalamazoo.net> > >Reply-To: Access Developers discussion and problem > >solving<accessd at databaseadvisors.com> > >To: <accessD at databaseadvisors.com> > >Subject: [AccessD] Search Memo field for number string > >Date: Mon, 31 Oct 2005 10:36:08 -0500 > > > >I need to search a memo field for any string of any numbers sequenced as > >follows, ### #### or ###.#### or ###-#### or ####### . I also want to bold > >the > >number sequence found in each memo field. Anyone have any ideas on how to > >setup > >this query? Thanks for any help! > > > > > > > >Sheri