Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace a character with another in a text box

Status
Not open for further replies.

JHDavis

Programmer
Aug 17, 2002
19
US
I have a text box that is filled with data pulled from another databse.

The pulled format is [productcode].[itemcode]

How do I find the "." and replace it with a space?
For example, I need to go from DF6YT.7856 to DF6YT 7856.
I'd like to do this in the After Update event.

Thanks in advance.
 
Try something like:
[tt]me!txtBox.value=replace(me!txtBox.value,"."," ")[/tt]

for 2000+ versions, for prior versions, have a look at RickSprs faq faq705-4342

Roy-Vidar
 
How about....
ProductCode = Replace(ProductCode, ".", " ")


Randy
 
DOH!

I forgot the ".value =" part.

Thanks very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top