Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call oracle procedure with in out parameter from ms access

Status
Not open for further replies.

rkinfo

MIS
Oct 7, 2005
16
US
I am trying to run a pass-through query as following.

Set qdf = db.CreateQueryDef("")
qdf.Connect = "odbc;dsn=oraacc;uid=msgdrss;pwd=gdrss;server=gdrss"
qdf.sql = "BEGIN keepcompile(TO_DATE('" & Format(StartDateTime, "MM/DD/YYYY") & "','mm/dd/yyyy'),TO_DATE('" & Format(StopDateTime, "MM/DD/YYYY hh:mm:ss") & "','mm/dd/yyyy hh24:mi:ss'), comments_);END;"

qdf.ReturnsRecords = False
qdf.ODBCTimeout = 0
qdf.Execute
qdf.Close
MsgBox comments_


Keepcompile is Oracle procedure, where all the variables are IN type of variables except comments_, it is out type of variable.
If I eliminate comments_ it is working fine

but if I want to get comments out
I am getting error run-time error'3146' ODBC --call failed.
Do you have any idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top