I have an .asp page with embedded sql. The following statement works fine going against SQL Server but I get "Syntax error in FROM clause" when run against Access. I've gone into the relationship properties dialogs to set up joins but still get the same error. Any ideas on what the cause might be?
SELECT r.record_name, r.date, r.comments, ISNULL(t.tune_name,'N/A'), a.artist_name, a.artist_id
FROM record r
JOIN record_x_artist ra on r.record_id = ra.record_id
JOIN artists a on ra.artist_id = a.artist_id
LEFT JOIN record_x_tune rt on r.record_id = rt.record_id
LEFT JOIN tunes t on rt.tune_id = t.tune_id
WHERE r.record_id = 3
Thanks in advance.
SELECT r.record_name, r.date, r.comments, ISNULL(t.tune_name,'N/A'), a.artist_name, a.artist_id
FROM record r
JOIN record_x_artist ra on r.record_id = ra.record_id
JOIN artists a on ra.artist_id = a.artist_id
LEFT JOIN record_x_tune rt on r.record_id = rt.record_id
LEFT JOIN tunes t on rt.tune_id = t.tune_id
WHERE r.record_id = 3
Thanks in advance.