Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View based of tables from two different databases
Message
 
 
À
26/06/2001 23:14:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00523961
Message ID:
00523971
Vues:
15
>>Hi everyone,
>>
>>I created a view, which is based on two tables. One table from Stats database (this is the one which is relevant for this application) and another table from JobControl database, which I used only for display purposes (I want to show customer name from customer table). My colleague suggested to use just tables instead. Well, I still want to use p-view, but I'm thinking, may be instead of adding customer table into my view, I can put seek(oJC.CustID, JobControl!Customer, CustID) into the controlSource for this textbox on the form (it's for display purpose only). What would you suggest?
>>
>>The form only uses one record from Stats!CustomerInfo for the customerID=oJC.CustID
>
>In principle the idea should work fine. Some frameworks work that way by default (often what they call "lookups").
>
>If the ControlSource won't accept the SEEK() or you have problems, define a custom function or method and use that instead.
>
>The main issue will be coordinating its refreshes with the rest of the form but that shouldn't be hard to do.

Thanks, Al. So, basically you suggest to proceed with the idea I described, right?

Is view based on tables from separate DBCs is a bad idea in general?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform