SOLVED:Sub expects a (

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ginge6000
    New Member
    • Feb 2008
    • 10

    SOLVED:Sub expects a (

    Hello,

    I'm probably being stupid (staring at the screen too long!) but here's my problem....

    I have created a subroutine in a module called Transfer_Batch with a number of arguments. When I try to call this sub from another it brings up the error "Compile Error: Expected(" I don;t get it! Here's the sub I'm trying to call

    Code:
    Public Sub Transfer_Batch(Exam As String, UCN As String, P2UCN As String, UID As String, Computer As String)
    and here's how i'm trying to call it......

    Code:
    Call Transfer_Batch (strExam, strUCN, strP2UCN, strUID, strComp)
    Am I being really dumb?

    Cheers,

    Ben
  • ginge6000
    New Member
    • Feb 2008
    • 10

    #2
    Solved! strComp is a funciton in itself! Can't have astring by the same name!

    Comment

    Working...