Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Add Record in Grid with more than 1 table inside
Message
From
11/05/2000 02:19:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00368379
Message ID:
00368424
Views:
27
>Hai All !!!
>
> I am a beginner in using Visual Fox Pro, But i am know little about it.
> Here, i want to ask about Adding record in Grid with more than 1 table inside
> but it related to the parent table that locate outside the grid !!
>
> I have some trouble with it !!!
> Please help me !!
>
> And Also when adding a record else where, how should we put an "APPE BLANK" command
> In the New Button or In Save Button.
>
> I Guess That's all for know !!
>
> Thanks Again, if you would send me the answer !!
>
> Thanks...........


Tut,
Hard to understand :) I assume you want to add a record to one or more child tables that are linked to a parent :
insert into Child1 (linkfield) values (foreignkeyvalue)
insert into Child2 (linkfield) values (foreignkeyvalue)
You could put "append blank" anywhere but what makes sense is "new" button. Just be sure to fill linking field value (foreign key) so it's not orphaned.
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
Next
Reply
Map
View

Click here to load this message in the networking platform