Output Parameter in Excel VBA
Hi,
I am using Sybase Database. There is a stored proc having an output parameter. I need to write a macro to execute the proc and retrieve the output value. I know how to create a connection, but I dont know how to execute the proc.
Kindly help
Subhojeet
You ned to use the AxtiveX Data Object(ADO) model.
Use the Command object which allows you to use the 'execute' method after passing items to the 'paramters' field.
See the Code Librarian on the Office Developers edition for plenty code example. Come back if you don't have access.
Robert, Edinburgh