Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with two tables in a same form
Message
De
07/12/2001 04:22:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/12/2001 16:45:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00590840
Message ID:
00591023
Vues:
28
>Greeting appreciated friends;
>I in this opportunity I want to consult to yours a topic that I could never have understood and I consider that is already hour of taking the matter.
>
>I have two tables the who they are related for a field. These tables are in a same form, when I make click on the new button the class make a append blank on the principal table and not in the secondary table.
>
>What I should make in order to save the records in the two tables from a same form.?
>
>TIA
Andrews,
After append blank and PK assignment on first table make an insert into second with key. ie:

*...
append blank
replace pkid with yourvalue
insert into secondtable (fkid) values (firsttable.pkid)
*...

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform