
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
Hi Douglas,
Recently, Douglas J. Steele <NOSPAM_djsteele@NOSPAM_canada.com> posted:
> Sorry, I can't explain the vaguaries of the Jet SQL dialect. <g> In
> other dialects, you'd use
[quoted text clipped - 4 lines]
> INNER JOIN Table3 ON Table1.R_ID = Table3.R_ID
> ORDER BY Table1.R_ID
That is exactly what I would do in a more conforming SQL dialect. However
with Jet SQL, who knows? I'll play with this and see.
BTW - I did take your other suggestion and build the query in Access and
look at it. My, what a mess, and it didn't work in the ASP code either.
> If I had to guess, I'd say that you've got (Table2 INNER JOIN Table3
> ON Table1.R_ID = Table3.R_ID) as a subquery that gets evaluated
> before the other join gets done, but I'm not sure whether Rushmore
> (the optimization technology that's built into Jet) isn't smart
> enough to look and see when it makes more sense to do a different
> subquery first based on the number of rows in each table.
Well, if I can't get the INNER JOINs to work, I may have to resort to
extremely inefficient methods to get the job done.
Thanks, again.
Neil
Douglas J. Steele - 24 May 2008 18:49 GMT
> Hi Douglas,
>
[quoted text clipped - 14 lines]
> BTW - I did take your other suggestion and build the query in Access and
> look at it. My, what a mess, and it didn't work in the ASP code either.
That doesn't make sense. If it runs in Access, it should run from ASP
(assuming you're using the correct connection string)
Did you get an error from ASP?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
Neil Gould - 24 May 2008 21:21 GMT
Recently, Douglas J. Steele <NOSPAM_djsteele@NOSPAM_canada.com> posted:
>> Hi Douglas,
>>
[quoted text clipped - 21 lines]
>
> Did you get an error from ASP?
The error was the same "missing operator" one as before. The above fails
in the same way (not too surprising, as it is "legitimage" SQL). ;-)
I've simplified the query to try tracking down the error. I can get a
single INNER JOIN to pass muster, but not the 3-table join. I'm pretty
sure it's a syntax problem, rather than a missing operator issue as
reported.
Best,
Neil