CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 open as update after insert

Print topic Send  topic

Author Message
Anthony Niemann
Posted: 04/08/2002, 10:19 AM

I want to open the same record for update immediately following insert.

I added the following code to the "AfterInsert" event but it doesn't work.
I'm starting to flail madly, any help would be appreciated. The key field is
ClassID.

openrs IdentityRS, "SELECT @@IDENTITY AS RecordID"
sParams = sParams & "?ClassID=" & cstr(GetValue(IdentityRS, "RecordID")) &
"&"
Set IdentityRS = Nothing

Thanks, Tony

Anthony Niemann
Posted: 04/08/2002, 3:50 PM

Never mind, I got the following to work.

AfterInsert:
openrs IdentityRS, "SELECT @@IDENTITY AS RecordID"
sActionFileName = sActionFileName & "?ClassID=" & cstr(GetValue(IdentityRS,
"RecordID")) & "&"
Set IdentityRS = Nothing

Thanks.



   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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