I'm totally stumped....when trying to call my oracle stored procedure within my vba code, example below. I've gotten this code example below and not having any luck with it. Does anybode see any problems???? In general I'm not finding much info out there regarding oracle stored procedures and vba....guess it's not a suprise...any ideas?
Function CallSProcwithoutparam() As Boolean
Dim db As Database
Dim LSProc As QueryDef
On Error GoTo Err_Execute
Set db = CurrentDb()
Set LSProc = db.CreateQueryDef("")
'Use {Microsoft ODBC for Oracle} ODBC connection
LSProc.Connect = "Provider=OraOLEDB.Oracle;Data Source=xxx;User Id=xxx;Password=xxx"
LSProc.SQL = "BEGIN DeleteHoldCodes; END;"
LSProc.ReturnsRecords = False
LSProc.ODBCTimeout = 0
LSProc.Execute
Set LSProc = Nothing
CallSProcwithoutparam = True
Exit Function
Err_Execute:
MsgBox "The call to the Oracle stored procedure failed."
CallSProcwithoutparam = False
End Function