Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a relalation in ADO
Message
From
24/05/1999 11:06:33
Alex Zhadanov
Computer Generated Solutions
New York City, New York, United States
 
 
To
22/05/1999 10:46:17
Richard Cruz
Palmetto Credit Corporation
Pasig, Philippines
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00221745
Message ID:
00222064
Views:
21
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform