Larry Brister
asked on
MS Access data from Stored Procedure
I have a button that on click I want to execute a stored procedure and then set a variable )strEnc) to the returned value of the column name (encContactID)
Been in .Net for a while and sp can't see where I set the variable from this
Set cmd.ActiveConnection = Conn
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "[usp_EncryptClientContact ID]"
cmd.Parameters("@ContactID ") = Me.[Contact ID]
cmd.Execute
Been in .Net for a while and sp can't see where I set the variable from this
Set cmd.ActiveConnection = Conn
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "[usp_EncryptClientContact
cmd.Parameters("@ContactID
cmd.Execute
How are you returning the value in the stored procedure ? Output parameter, return value?
ASKER
Just returning a value
Also...watch for additional question
Also...watch for additional question
PLease post your Stored Procedure, I know you are returning a value I need to understand what method you are using to return the value if you are at all
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found my own answer