Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a relalation in ADO
Message
De
24/05/1999 11:06:33
Alex Zhadanov
Computer Generated Solutions
New York City, New York, États-Unis
 
 
À
22/05/1999 10:46:17
Richard Cruz
Palmetto Credit Corporation
Pasig, Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00221745
Message ID:
00222064
Vues:
20
>Hi,
>
> Anybody help to create a table relation in ADO and im using a mdb database...
>
> Purchase ----> main table
> detail ----> link to purchase
> expense ----? link to purchase
>tia
>richard..
Hi Richatd.
Use the ADO SHAPE command to generate hierarchial recordset
Like this (you should check for syntax errors)
dim cn as new adodb.connection
dim rsmain as new adodb.recordset
with cn
.provider = "MSDataShape"
.cursorlocation = aduseclient
.connectionstrin = "your conn string"
end with
rsmain.source = "shape {select * from purchase } append ({select * from detail } as detail1 relate detailid to detailid)"
the same for second table.
Alex.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform