Come fare per ottenere tutti i record in table che hanno almeno un record in foto ?
codice:
SELECT table.idutente, table.nome_struttura, table.descrizione, table.weekday, table.posti, table.pos, table.attiva, table.FileID, First(foto.foto) AS PrimoDifoto
FROM table INNER JOIN foto ON table.FileID = foto.FileID
WHERE (((foto.foto) Is Not Null))
GROUP BY table.idutente, table.nome_struttura, table.descrizione, table.weekday, table.posti, table.pos, table.attiva, table.FileID
HAVING (((table.attiva)=1))
così va in errore (first)