Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with two tables in a same form
Message
From
07/12/2001 04:22:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/12/2001 16:45:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00590840
Message ID:
00591023
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform