Results 1 to 7 of 7
  1. #1
    google is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    8

    Exclamation Replacing space in particular section of the field with Update query

    Hi Guys, I am trying to remove the space between $ and value. I have used the below mentioned query with * as a wildcard but it changes the whole value of cell into $*, I know i should use something like REGEX but i am not sure how to apply it. Please advice on how to solve this.

    UPDATE TABLE NAME SET TABLE NAME.[COLUMN NAME] = "$*"
    WHERE (((TABLE NAME.[COLUMN NAME]) Like "$ *"));

    Example data of what i am trying to replace with.

    Existing format Required format
    $ 58,700,000 $58,700,000
    $ 2,076,890,000 $2,076,890,000
    $ 313,797,052 $313,797,052


  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Not sure, just check out if below is of any help :

    Code:
    UPDATE Table1 SET Table1.ExistingFormat = Replace([ExistingFormat],"$ ","$");
    Note :
    1) PLEASE BE CAREFUL.
    2) Was wondering why $ needs to be stored in the field value.

    Thanks

  3. #3
    google is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    8
    Hurray!!! It worked, Thank you recyan.

  4. #4
    google is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    8
    Hurray!!! It worked, Thank you Recyan.

  5. #5
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Glad you found it helpful.

    Thanks

  6. #6
    google is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    8
    +1 for you

  7. #7
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Thanks google

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 12-05-2012, 02:20 PM
  2. Replacing space with dot
    By JeroenMioch in forum Programming
    Replies: 15
    Last Post: 10-22-2012, 07:09 AM
  3. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  4. Replacing data in a field.
    By darrellx in forum Queries
    Replies: 4
    Last Post: 08-21-2011, 10:33 AM
  5. Replies: 4
    Last Post: 10-15-2010, 07:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums