Results 1 to 3 of 3

Thread: help! :(

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    help! :(

    VB Code:
    1. Function LineFeed()
    2. LineFeed = IIf(chkLineFeed.Value = 1, vbCrLf)
    3. End Function
    i get an 'argument not optional' anyone have any ideas why?

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    The IIf function requires 3 parameters:

    IIF(Condition,Truepart,Falsepart)

    LineFeed = IIf(chkLineFeed.Value = 1, vbCrLf, "")

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    !! Yay

    cheers

Posting Permissions

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



Click Here to Expand Forum to Full Width