View Single Post
  #4  
Old July 11th, 2009, 08:42 PM posted to microsoft.public.access
Kc-Mass
external usenet poster
 
Posts: 362
Default code to remove "," from a form

Let's say you have a variable "strNames" with the following value: "Ed,
Peter, Tom, Ron"

Try something like this:

Replace(strNames, ", ", " ")

Would yield strNames = "Ed Peter Tom Ron"

Regards

Kevin

"Simon" wrote in message
...
I would like a code to stop having and "," in the test

I will run the code on exit

what code do i need to use to do find and replace "," with nothing

Thanks