Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two table in one grid
Message
 
To
22/01/2005 09:35:47
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979546
Message ID:
00979745
Views:
14
>>Dear Reza,
>>
>>Use local view, and left join on acode (primary key) of both tables, this way you can update both table.
>
>Dear Aaron,
>I have not any Database .i use from free table. how must i do it?
>thanks

You can create views that use free tables, and you can create the DBC and views on-the-fly. Do something like this:
create database MyViews
create SQL View "SomeView" AS ;
   Select Table1.Field1, Table1.Field2, Table2.Field1 ;
      FROM Table1 ;
         INNER JOIN Table2 on Table1.Field1 = Table2.Field1 ;
      WHERE SomeCondition
When you're done, you can delete the whole thing:
SET DATABASE TO MyViews
CLOSE DATABASE
DELETE FILE MyViews.dbc
DELETE FILE MyViews.dc?
Previous
Reply
Map
View

Click here to load this message in the networking platform