Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to query a recordset?
Message
 
To
04/05/2000 03:16:13
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00365975
Message ID:
00366002
Views:
20
>Hi,
> i have an query that use UNION. How could I query the certain records from the exisitng recordset?
>
>select * from table1 where condition A = true
>UNION
>select * from table2 where condition B = true
>UNION
>select * from table3 where condition C = true
>
>(REFERENCE BY MYRS1)
>
>I need to get certain records only from MYRS1.
>
>Any ideas?

Which database access method? DAO? ADO?

The fastest way is to add WHERE clause to your SELECT queries (which you already do).

Once your recordset is open, if you use ADO, you can use the Filter property.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform