Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get 2 dbf files to form a simple recordset in ADO
Message
 
À
04/06/2002 05:04:51
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00664349
Message ID:
00664394
Vues:
17
You can surely do this using the UNION operator:
SELECT Col1, Col2, Col3
FROM Table1
WHERE Col1 = Criteria
UNION
SELECT Col1, Col2, Col3
FROM Table2
WHERE Col1 = Criteria
ORDER BY Col1, Col2
>Hi,
>
>Using VB6, is there any way to do a SQL or retrieve data
>from two dbf file from different location using ADO to
>form a single recordset which I intend it for use with
>Crystal Report 8.5.
>
>I had tried to use CR query designer, but it can't
>using ODBC Visual Foxpro driver.
>
>Is there any recommend way or refer way to do similar stuff
>as I want only my Crystal report (.rpt) to pull the
>required record automatically, without having to have individual
>form for each report.
>
>Please kindly advise.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform