Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

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_EncryptClientContactID]"
    cmd.Parameters("@ContactID") = Me.[Contact ID]
    cmd.Execute
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

How are you returning the value in the stored procedure ? Output parameter, return value?
Avatar of Larry Brister

ASKER

Just returning a value

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
Avatar of Larry Brister
Larry Brister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Found my own answer