ecco, prova così:
codice:
strSql = "SELECT * FROM DettaglioOfferta WHERE IDOfferta = "
     & Forms!SelezionaOfferta!IDOfferta & " ORDER BY Riga"

Set rst = db.OpenRecordset(strSql, dbOpenDynaset)
ciao bello