Thanks for sticking with it Rudy.
I am not trying to be secretive. Actually I am trying to be be as generic and plain as possible.
The database I am using is Paradox, although I get similar problems when I try this using Access.
The actual table names and field names and types (set up in Access) are
Table1 (ProId -number, SiteNo -number, Sign -Yes/No, Age -text)
Table2 (SceDetNo -number, SceNo -number, SiteNo -number)
I set up these tables in Access and ran the following code, which is based on the code sample you wrote:
Code:
SELECT Table1.siteno
FROM Table1
LEFT OUTER
JOIN Table2
ON Table2.siteno = Table1.siteno
AND Table2.sceno = 1
WHERE (((Table1.sign)=Yes) AND ((Table1.age)="cur") AND ((Table2.sceno) Is Null))
All the bracketing in the WHERE clause is based on what the Access query wizard came up with.
Access comes back with the error message "Join expression not supported". As I mentioned, BDE (Borland Database Engine) returned the error "invalid filename" when I ran the query last night on Paradox Tables.
I am pretty sure that what I've coded above is the same as what you coded. I could try this out with in MYSQL tonite.
Thanks,
Scott