Access_guy49
Registered User.
- Local time
- Today, 19:48
- Joined
- Sep 7, 2007
- Messages
- 462
OK I thought i understood this, but apparently I don't.
Firstly, A function returns a value, a Sub just does an action.
I have created a subroutine that i pass some paramaters into. (A fileName, Starting value, Ending value.) They are all ByValue. There is nothing after the brackets.
when i call this sub from a button on a form it doesn't work. "Expected ="
So i put = true and then it doesn't like it because the function isn't defined. (obviously, because i didn't define it as anything because it's a sub.)
If i change it to a function, let the function be a string, and then use a variable at the start.
wtf = Function name (param,param,param)
Everything works... what am i doing wrong here!
Firstly, A function returns a value, a Sub just does an action.
I have created a subroutine that i pass some paramaters into. (A fileName, Starting value, Ending value.) They are all ByValue. There is nothing after the brackets.
when i call this sub from a button on a form it doesn't work. "Expected ="
So i put = true and then it doesn't like it because the function isn't defined. (obviously, because i didn't define it as anything because it's a sub.)
If i change it to a function, let the function be a string, and then use a variable at the start.
wtf = Function name (param,param,param)
Everything works... what am i doing wrong here!