ADO wont allow a LEFT JOIN with forward only cursor

M

Michel Walsh

HI,


ADO have nothing to do with JOIN, the JOIN is first made, then, the
result "encapsulated" into a recordset. The following should work:


Dim rst As ADODB.Recordset
Set rst=xnn.Execute("SELECT COUNT(*) FROM a LEFT OIN b ON a.f1=b.g1")
Debug.Print rst.Fields(0).Value


assuming xnn is an already open ADO connection.




Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top