+ Reply to Thread
Results 1 to 5 of 5

Can the replace & StrConv be used together???

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Can the replace & StrConv be used together???

    I have a query that returns JACK THE* RIPPER so I want to replace the * with " " & have it in lower case...

    I have CUSTOMER: Replace([CUSTOMER_NAME],"*",StrConv([CUSTOMER_NAME],3," "))

    I get an #Error in return...

    don't know if I could even use them together... just testing things out. I know I can build another query using this query & just use the StrConv function then but rather do it in one if possible.
    Last edited by jgomez; 03-15-2012 at 03:28 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Can the replace & StrConv be used together???

    if you want lower case for all letters, try...
    =LOWER(REPLACE(I16,FIND("*",I16,1),1," "))
    Adjust references as needed
    I am using 2007, and it doesnt have =strconv() function (have never heard of that either lol), if you want to have Upper Case For First Letters, change the =lower() to =proper()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: Can the replace & StrConv be used together???

    Why did you enter the I16???? Using 2007 access????

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Can the replace & StrConv be used together???

    Sorry, I thought this was an excel question

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,019

    Re: Can the replace & StrConv be used together???

    This worked for me.
    Please Login or Register  to view this content.
    Change up the table name and field name to suit your db.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1