Hi AB33,
Thank you for the reply.
Actually I had done something very similar before posting it to Excel Forum.
This is what my code looked like -
But the return_value seems to be the troublesome part.
I also tried changing adParamReturnValue to adParamOutput. I also tried placing ReturnValue as the 1st parameter in the code.
I get an error -
Run-time error '-2147217900 (80040e14)'
Procedure or function Customer_Data has too many arguments specified. (It is treating the return value as a Parameter) I am not very sure how to handle return value because of my limited knowledge of SQL.
Bookmarks