return partial text string

C

carol

would like to design update query that modifies existing
text field as follows:

current field in records read as an email address followed
by # and additional url. i would like to update field to
include only text to left of "#". your help would be
appreciated. thx.
 
L

Les

I think you could create a new field using something like
this:

Newfld: Mid([yourfld],1,InStr(1,[yourfld],"#",1)-1)
 
J

JumboShrimps

I have names with "." between first, last name.
How can I covert this code to change
Bill.Gates to Bill Gates - replacing "." with
" ".
-----Original Message-----
I think you could create a new field using something like
this:

Newfld: Mid([yourfld],1,InStr(1,[yourfld],"#",1)-1)

-----Original Message-----
would like to design update query that modifies existing
text field as follows:

current field in records read as an email address followed
by # and additional url. i would like to update field to
include only text to left of "#". your help would be
appreciated. thx.
.
.
 
L

Les

Hi Jumboshrimps,

You would need something like the following:

Newfld: Mid([yourfld],1,InStr(1,[yourfld],".",1)-1) & " "
& Mid([yourfld], Instr(1,[yourfld],".",1)+1,Len([yourfld])-
Instr(1,[yourfld],".",1)
-----Original Message-----
I have names with "." between first, last name.
How can I covert this code to change
Bill.Gates to Bill Gates - replacing "." with
" ".
-----Original Message-----
I think you could create a new field using something like
this:

Newfld: Mid([yourfld],1,InStr(1,[yourfld],"#",1)-1)

-----Original Message-----
would like to design update query that modifies existing
text field as follows:

current field in records read as an email address followed
by # and additional url. i would like to update field to
include only text to left of "#". your help would be
appreciated. thx.
.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top