CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Linking to table with identity key

Print topic Send  topic

Author Message
Rich
Posted: 05/10/2004, 8:37 AM

I have one page where i am entering information. After I hit "Add", it creates the row into a table, which then will add the identity key into the table.

I have a 2nd table where i link to that primary(identity key). So i need to insert rows which includes that primary key.

The problem i have is that after i insert the first row, i don't know hot to retrieve that identity value so that i can insert it into the 2nd table.

Ahy help is appreciated
peterr


Posts: 5971
Posted: 05/10/2004, 12:29 PM

Almost every database handles this differently therefore the answer would depend on the database type.
An example is in CCS Example Pack. Search the "ManyToManyCheckbox" page for the text "'Retrieve the last inserted key".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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.