By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,193 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

SOLVED:Sub expects a (

P: 10

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

Expand|Select|Wrap|Line Numbers
  1. 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......

Expand|Select|Wrap|Line Numbers
  1. Call Transfer_Batch (strExam, strUCN, strP2UCN, strUID, strComp)
Am I being really dumb?


Mar 10 '08 #1
Share this Question
Share on Google+
1 Reply

P: 10
Solved! strComp is a funciton in itself! Can't have astring by the same name!
Mar 10 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.