Parentheses in function call

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ragtopcaddy via AccessMonster.com

    #1

    Parentheses in function call

    I have two functions in the same module:

    ExportPivots(dt Rpt As Date)
    ExportChanges(d tNew As Date, dtOld As Date)

    I have 2 cmd buttons on a form. Why is it that the first cmdButton function
    call requires that I remove parentheses and the 2nd does not? They are both
    in the same form module.


    Private Sub cmdChangeRpt_Cl ick()

    ExportChanges Me.txtNewDate, Me.txtOldDate

    End Sub


    Private Sub cmdOwnRpt_Click ()

    ExportPivots (Me.txtOwnDate)

    End Sub

    Curious!

    --
    Bill Reed

    "If you can't laugh at yourself, laugh at somebody else"

    Message posted via http://www.accessmonster.com

Working...