Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

How to add a carriage return

Discussion in 'Information Technology' started by azirion, Oct 29, 2005.

  1. azirion

    azirion
    Expand Collapse
    Guest

    When I click a button I need to add some text into a text-box, but if I say
    field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    How can I add a carriage return to a text box?
    Thanks in advance!
     
  2. Loading...


  3. azirion

    azirion
    Expand Collapse
    Guest

    Found it... chr(10) & chr(13)!!
    Thanks anyway...

    "azirion" wrote:

    > When I click a button I need to add some text into a text-box, but if I say
    > field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    > How can I add a carriage return to a text box?
    > Thanks in advance!
     
  4. Van T. Dinh

    Van T. Dinh
    Expand Collapse
    Guest

    .... or vbCrLf.

    --
    HTH
    Van T. Dinh
    MVP (Access)



    "azirion" <azirion@discussions.microsoft.com> wrote in message
    news:EF7C2AC4-936E-42F0-BF4C-DC811F4D0848@microsoft.com...
    > Found it... chr(10) & chr(13)!!
    > Thanks anyway...
    >
    > "azirion" wrote:
    >
    >> When I click a button I need to add some text into a text-box, but if I
    >> say
    >> field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    >> How can I add a carriage return to a text box?
    >> Thanks in advance!
     
  5. Rick Brandt

    Rick Brandt
    Expand Collapse
    Guest

    azirion wrote:
    > Found it... chr(10) & chr(13)!!
    > Thanks anyway...


    Actually you have to reverse that order or it won't work.

    --
    I don't check the Email account attached
    to this message. Send instead to...
    RBrandt at Hunter dot com
     

Share This Page