CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Using RETURN_VALUE from Stored Procedures

Print topic Send  topic

Author Message
ahingeveld
Posted: 05/02/2003, 6:20 AM

I've modified my insert stored procedure to return the auto-incrment primary key of the new record I've inserted. Is there a quick way to use the RETURN_VALUE from a CCS stored procedure parameter list to redirect to a new page? I've noticed that comments regarding RETURN_VALUE use are relatively old and on CCS' wish list.

Array("RETURN_VALUE", "urlRETURN_VALUE", adInteger, adParamReturnValue, 0, 0, 10, Empty, Empty), _
Hamilton
Posted: 05/02/2003, 6:44 AM

In the after insert event for the record place the following code:
Dim NewID
NewID = CCDLookUp("@@IDENTITY", "TableName", "id=@@IDENTITY", DBIntranet)
ahingeveld
Posted: 05/02/2003, 11:26 AM

Thanks, that worked great.
Robert O'Donnell
Posted: 06/16/2003, 7:40 PM

Anyone know how to do this in VB.NET with SQL Server?

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.