Hej, får förljande fel:
join expression not supported
då jag använder denna kod:
SQLstmt = "SELECT if(student_id is null,'',' CHECKED') AS checked,c.company_id,c.company FROM Company c left outer join interested_in i on c.company_id = i.company_id and student_id = 1"
SQLstmt = "SELECT iif(student_id is null,'',' CHECKED') AS checked,c.company_id,c.company FROM Company c left outer join interested_in i on (c.company_id = i.company_id and student_id = 1)"
Join-syntaxen är korrekt enligt sql-standard men Access är ju lite annorlunda med avseende på vad den godkänner.
Jag vet inte om detta hjälper då jag inte använder Access själv.
------------------ essentitia preter non sans multiplicandum
SQLstmt = "SELECT iif(student_id is null,'',' CHECKED') AS checked,c.company_id,[b]c.company_name[/b] FROM Company c left outer join interested_in i on (c.company_id = i.company_id and student_id = 1)"
Funkar utmärkt på min maskin i alla fall. ;)
Mvh,
------------------
Don't panic!
135 ms totalt · 3 externa anrop · v20260731065814-full.b746b907