Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Line Continuation (Access 2000)

    I am wondering why I cannot continue on the if line using & _

    For bytT = 1 To 10
    If (Me("cboglcode" & bytT)= "260" or Me("cboglcode" & bytT)= "262" or & _
    Me("cboglcode" & bytT)= "276") And Me("cbotype" & bytT) <> "M" Then
    blnTypeError = True
    End If
    Next bytT

    Thanks

  2. #2
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Line Continuation (Access 2000)

    Don't use the ampersand before the underscore unless you are breaking a string between two lines.

    Hope this helps.

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Line Continuation (Access 2000)

    Thanks, it works!

Posting Permissions

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