Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Table Query
Message
From
03/08/2000 13:21:27
 
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00399670
Message ID:
00400499
Views:
15
>i want to know the proper syntax for selecting multiple table in ADO, say i have 7 tables that i want to retrieve data from using the data i retrieved from the first recordset
>
>i tried something like this
>
>1. i retrieved the data first from empfile
>
>** rsEmpFile.Open "SELECT * FROM empfile WHERE empno = '" & txtempno.text & "'", adoEmpFile,,,adCmdText
>
>2. from the rsEmpFile.Recordset, i will use the data coming from it to retrieve the data from the other tables like this
>
>** if rsEmpFile.Recordcount = 1 then
> rsTemp.Open , adoEmpFile,,,adCmdText
>
>...how do i do this? i really need help with it! thanks!
>
>Elinore


You can une a JOIN in your SQL query.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Reply
Map
View

Click here to load this message in the networking platform