A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

code to remove "," from a form



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2009, 07:51 PM posted to microsoft.public.access
Simon
external usenet poster
 
Posts: 335
Default code to remove "," from a form

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
  #2  
Old July 11th, 2009, 08:05 PM posted to microsoft.public.access
CompGeek78
external usenet poster
 
Posts: 115
Default code to remove "," from a form

On Jul 11, 12:51*pm, Simon wrote:
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


Please give us more details about what you are trying to do. Is the
test that you refer to the name of a TextBox? Could there be multiple
occurrences of "," in whatever object you are trying to remove them
from?

Some sample data and a bit more detail would go a long way towards
letting us help you.
  #3  
Old July 11th, 2009, 08:41 PM posted to microsoft.public.access
Simon
external usenet poster
 
Posts: 335
Default code to remove "," from a form

On Jul 11, 8:05*pm, CompGeek78 wrote:
On Jul 11, 12:51*pm, Simon wrote:

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


Please give us more details about what you are trying to do. Is the
test that you refer to the name of a TextBox? Could there be multiple
occurrences of "," in whatever object you are trying to remove them
from?

Some sample data and a bit more detail would go a long way towards
letting us help you.


Its a text field, where the user types in a delivery address, but i
want to stop the user using using "," in the line like 4, The
Street i want it to look like 4 The Street

Thanks

Simon
  #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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.