Welcome to SPN

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

Sign Up Now!

code to long

Discussion in 'Information Technology' started by rml, Jul 28, 2006.

Tags:
  1. rml

    rml
    Expand Collapse
    Guest

    I'm creating a button on a form which with combine several fields together.
    The code is getting very long and difficult to view by scrolling. How can I
    break the code to the next line and still work?

    Thanks.
     
  2. Loading...

    Similar Threads Forum Date
    Introducing The Spn Code Of Forum Etiquette Announcements Feb 20, 2016
    UK Sikh 'code of silence' on sexual grooming Breaking News Sep 2, 2013
    Can a Dress Code Bar Ethnic and Religious Attire Based on Customer Preferences in the US? Questions and Answers May 3, 2011
    Pacific Code Exempts Religious Drivers (Fiji) Breaking News Feb 16, 2011
    Controversial Gurdwaras 'Breaking the Sikh Code' on Meat and Alcohol Hard Talk Dec 2, 2010

  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    Use the underscore character after a space as the line continuation
    character.

    Example:
    MsgBox _
    "Say what?", vbQuestion, _
    "This is an example of line continuation code"

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "rml" <rml@discussions.microsoft.com> wrote in message
    news:792E9335-C283-402C-8F80-300025792C4E@microsoft.com...
    > I'm creating a button on a form which with combine several fields
    > together.
    > The code is getting very long and difficult to view by scrolling. How can
    > I
    > break the code to the next line and still work?
    >
    > Thanks.
     
  4. James

    James
    Expand Collapse
    Guest

    Just put a _ wherever you want to break the line.

    ex..

    this line is _
    getting to long

    rml wrote:
    > I'm creating a button on a form which with combine several fields together.
    > The code is getting very long and difficult to view by scrolling. How can I
    > break the code to the next line and still work?
    >
    > Thanks.
     

Share This Page