S
sparty1022
Trying to call a Oracle stored procedure that has (3)
parameters[Date],[Date],[String]
Set cn = New ADODB.Connection
cn.Open strConn
Set cmd = New ADODB.Command
cmd.ActiveConnection = cn
cmd.CommandText = "pkg_allocation_report.runallocationreport_005"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append
cmd.Parameters.Refresh
cmd(1) = strStart
cmd(2) = strEnd
cmd(3) = strDiv
This is based on the MS Help on stored procs in Access 2003
When it gets to the cmd(1) it says thata they are undefined. Is there any MS
documentation on how to work with Oracle through Access?
I have also tried to create a single string like
'strSQL = "BEGIN pkg_allocation_report.runallocationreport_005 (to_date('" &
Format(strStart, "mm/dd/yyyy") & "','mm/dd/yyyy'), "
'strSQL = strSQL & "to_date('" & Format(strEnd, "mm/dd/yyyy") &
"','mm/dd/yyyy'),"
'strSQL = strSQL & strDiv & " )"
'strSQL = strSQL & "; END;"
which doesn't execute but the string will run the procedure when executed
through sqlplus.
parameters[Date],[Date],[String]
Set cn = New ADODB.Connection
cn.Open strConn
Set cmd = New ADODB.Command
cmd.ActiveConnection = cn
cmd.CommandText = "pkg_allocation_report.runallocationreport_005"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append
cmd.Parameters.Refresh
cmd(1) = strStart
cmd(2) = strEnd
cmd(3) = strDiv
This is based on the MS Help on stored procs in Access 2003
When it gets to the cmd(1) it says thata they are undefined. Is there any MS
documentation on how to work with Oracle through Access?
I have also tried to create a single string like
'strSQL = "BEGIN pkg_allocation_report.runallocationreport_005 (to_date('" &
Format(strStart, "mm/dd/yyyy") & "','mm/dd/yyyy'), "
'strSQL = strSQL & "to_date('" & Format(strEnd, "mm/dd/yyyy") &
"','mm/dd/yyyy'),"
'strSQL = strSQL & strDiv & " )"
'strSQL = strSQL & "; END;"
which doesn't execute but the string will run the procedure when executed
through sqlplus.