Results 1 to 4 of 4
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    strConv Fails (03)

    I have a report that I would like the text to display as "ProperCase" ie using the function "strConv([myfield]),3). The result is displaying #Error.

    Any suggestions?

    Thanks,
    John

  2. #2
    5 Star Lounger
    Join Date
    Aug 2004
    Location
    Connecticut, USA
    Posts
    816
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: strConv Fails (03)

    <img src=/S/whisper.gif border=0 alt=whisper width=29 height=17> you have an extra ")" in your post

    The only way I could get StrConv([myfield],3) to "#Error" was when my [myfield] itself was an error (I subtracted a number from a string). I was successful when [myfield] was a string, a number, a date, and a null value.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: strConv Fails (03)

    In addition to mbarron's remarks, did you remember to put an = in front of the control source?
    <code>
    =StrConv([MyField],3)
    </code>
    Also, make sure that the text box isn't named MyField. Access gets confused if the control source is an expression that refers to a field with the same name as the control.

  4. #4
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: strConv Fails (03)

    Hans,

    <hr>Access gets confused if the control source is an expression that refers to a field with the same name as the control.<hr>

    This was the issue.

    Regards,
    John

Posting Permissions

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