P
Polina
Hello!
I'm searching a way to get (in vba) the return value of a sql
function. I tried the following code:
Set cn = CreateObject("ADODB.Connection")
cn.ConnectionString = "DSN=;UID=;PWD="
cn.Open
sql = "DECLARE RetVal VARCHAR2(200); BEGIN RetVal :=
USER.MY_SQL_FUNCTION; END; "
cn.Execute sql
My function delivers a string as return value. Does anybody know how
to get it in vba?
Thank you for your help!
Polina
I'm searching a way to get (in vba) the return value of a sql
function. I tried the following code:
Set cn = CreateObject("ADODB.Connection")
cn.ConnectionString = "DSN=;UID=;PWD="
cn.Open
sql = "DECLARE RetVal VARCHAR2(200); BEGIN RetVal :=
USER.MY_SQL_FUNCTION; END; "
cn.Execute sql
My function delivers a string as return value. Does anybody know how
to get it in vba?
Thank you for your help!
Polina