Output from stored procedures

Stevenn

Active Member
Joined
Feb 8, 2012
Messages
259
I am trying to use some stored procedures in Oracle. I've tried to use the upload-function with
Code:
objConnection.Execute "BEGIN upload_from_excel(1, 2, 3 ,4); END;"
, but I don't know how to get any response if the query didn't run successfully. Is there a way to do this in VBA?

I've found that I can use another stored procedure; validate_excel_upload(). How can I get the output from validate_excel_upload() in VBA? I've tried
Code:
objRecordset.Open "CALL validate_excel_upload(1, 2, 3, 4);"
and
Code:
MsgBox objRecordset(0)
, but I know it's a wrong way to use stored procedures. Can anyone please help me using stored procedures correctly? Thank you.

Btw the validate function looks like
Code:
PROCEDURE validate_excel_upload(p_delete IN NUMBER, p_budget_id IN NUMBER, p_upload_id IN NUMBER, p_user IN VARCHAR2, p_result OUT VARCHAR2);
 
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,214,421
Messages
6,119,392
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top