PDA

Click to See Complete Forum and Search --> : SELECT in ADO problems ..


trisLOGIC
May 27th, 2000, 05:03 PM
In ADO, how do we make a SELECT statement that can receive fields from two tables from two different MS Access database ?

And, how come I can't use 'LEFT JOIN' clauses in SELECT statement ? I am using Access 2000. The way I query the database is like -

SET rst = NEW ADODC.recordset
rst.Open QueryStr,Conn,adKeyset,adLockReadOnly,adcmdText

Clunietp
May 28th, 2000, 03:32 AM
first question: You could use ADO data shaping to join recordsets, or you could create a separate MDB file and link the two tables from the different databases.

I suppose you could also use jet sql to join the two tables as well.....

second question: what does your SQL look like?

trisLOGIC
May 28th, 2000, 10:15 PM
How to use ADO data shaping ?

As for the SQL -

SELECT * FROM Table1 LEFT JOIN Table2 WHERE 1=1

Thanks.