CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Update main table and Insert data into related table

Print topic Send  topic

Author Message
Bill Blancett
Posted: 09/05/2001, 2:36 PM

I have several forms which update the main table but also need to insert new
information from the form to a related table upon submission. For example I
have the applicant table as the main table with applicant_id as the primary
key. The user fills out the form and certain fields in the applicant table
are UPDATED but another related table by applicant_id needs data INSERTED to
it. Is it possible to both update a table and insert data into a table on
the same form ?

David A. Lee
Posted: 09/05/2001, 4:35 PM

Yes, but you need to hand-code this in the "After Insert" and "After Update"
events

> I have several forms which update the main table but also need to insert
new
> information from the form to a related table upon submission. For example
I
> have the applicant table as the main table with applicant_id as the
primary
> key. The user fills out the form and certain fields in the applicant table
> are UPDATED but another related table by applicant_id needs data INSERTED
to
> it. Is it possible to both update a table and insert data into a table on
> the same form ?
>
>

Jeff Walters
Posted: 09/06/2001, 3:43 AM

Alternatively
- if you are using a SQL database (rather than Access), you could use a
trigger to achieve the same thing. In terms of robustness, this is the
preferred route in case there are opportunities to insert / update data from
alternative front-ends to your CodeCharge application.

Jeff

"David A. Lee" <dave@calldei.com> wrote in message
news:9n6cs0$qoj$1@news.codecharge.com...
> Yes, but you need to hand-code this in the "After Insert" and "After
Update"
> events
>
> > I have several forms which update the main table but also need to insert
> new
> > information from the form to a related table upon submission. For
example
> I
> > have the applicant table as the main table with applicant_id as the
> primary
> > key. The user fills out the form and certain fields in the applicant
table
> > are UPDATED but another related table by applicant_id needs data
INSERTED
> to
> > it. Is it possible to both update a table and insert data into a table
on
> > the same form ?
> >
> >
>
>


   


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

Web Database

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.