<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.3314.2100" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=100264215-24092003>Do I
put it in a module & run it?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=100264215-24092003></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=100264215-24092003>I
get the error: Expected = on Replace (....</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=100264215-24092003></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=100264215-24092003>Va.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=100264215-24092003></SPAN></FONT> </DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> paul.hartland@fsmail.net
[mailto:paul.hartland@fsmail.net]<BR><B>Sent:</B> Wednesday, September 24,
2003 8:09 AM<BR><B>To:</B> Access Developers discussion and problem
solving<BR><B>Subject:</B> Re: [AccessD] Find a Word & Put in New
Field<BR><BR></DIV></FONT>
<P><BR>Virginia,</P>
<P>What you could do is something like the following :</P>
<P>Dim MyDocNo as String</P>
<P>MyDocNo = Mid(yourfieldname,Instr(yourfieldname,"DS-"),16)</P>
<P>Replace (yourfieldname,MyDocNo, "")</P>
<P>yourotherfield = MyDocNo</P>
<P>this should work, please remember to back up your table etc before trying
it</P>
<P>Paul Hartland<BR><BR><BR></P>
<BLOCKQUOTE
style="BORDER-LEFT: #ff0000 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Message
date : Sep 24 2003, 02:02 PM <BR>From : Hollis,Virginia
<HOLLISVJ@PGDP.USEC.COM><BR>To : 'Access Developers discussion and problem
solving' <ACCESSD@DATABASEADVISORS.COM><BR>Copy to : <BR>Subject : [AccessD]
Find a Word & Put in New Field <BR>This is a real challenge...
<BR><BR>Is it possible to search a field for certain text, remove the word
for <BR>placement in another field? <BR><BR>We have a part description that
lists the document number in the <BR>description. The document numbers are
all the same length and all start with <BR>DS-, (ex: DS-MDD-15987-001). But
the document number might be anywhere in <BR>the description. The document
number needs to be separated out into a field <BR>by itself. <BR><BR>There
are over 3,000 records & I really don't want to sit here for days
<BR>doing a copy & paste to move the number to a new field. <BR><BR>Any
ideas? Or can this be done at all? <BR><BR>Virginia
<BR>_______________________________________________ <BR>AccessD mailing list
<BR>AccessD@databaseadvisors.com
<BR>http://databaseadvisors.com/mailman/listinfo/accessd <BR>Website:
http://www.databaseadvisors.com <BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>