![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On Fri, 24 Apr 2009 12:15:45 -0700 (PDT), musicloverlch wrote: I have 2 fields of names that can't have commas. Is there a way I can programmatically "find and replace"? Thanks, Laura Replace with what? When? During entry? Code the form control's AfterUdate event: Me![ControlName] = Replace([ControlName],",","") The above will just remove commas. -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail |
#3
| |||
| |||
|
|
On Fri, 24 Apr 2009 13:20:54 -0700 (PDT), musicloverlch wrote: I have to take a text file with about 600 records in it, import it, total it up, store the totals, and export it in a specific delimited format for another company. The file coming in might have commas in the name that I need to remove. *Is there a way I can do it in VB? Can I use the code below and cycle through the records? On Apr 24, 2:44*pm, fredg <fgutk... (AT) example (DOT) invalid> wrote: On Fri, 24 Apr 2009 12:15:45 -0700 (PDT), musicloverlch wrote: I have 2 fields of names that can't have commas. Is there a way I can programmatically "find and replace"? Thanks, Laura Replace with what? When? During entry? Code the form control's AfterUdate event: Me![ControlName] = Replace([ControlName],",","") The above will just remove commas. -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail After you import the names you can run an Update query. Here is the query SQL. Change the table and field names to whatever yours are. Make a backup of the table first. Update YourTable Set YourTable.[FieldName] = Replace([FieldName],",","") Smith, John will become Smith John. -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
I have 2 fields of names that can't have commas. Is there a way I can programmatically "find and replace"? |
![]() |
| Thread Tools | |
| Display Modes | |
| |