hi
i have this query in my vba and it works fine (with naturally some changes)
now i made a query with that code that you can see below
but the partCode:INSERT INTO EMList ( CandidatoID, Nome, Azienda, Email, tipocontatto, CC )SELECT ReferentiAziendali.CandidatoID, [nome] & " " & [cognome] AS NomeCognome, Aziende.Azienda, Candidati.[email ufficio], Candidati.tipocontatto, ZoneCandidato.CC FROM Comuni INNER JOIN (Aziende INNER JOIN ((ReferentiAziendali INNER JOIN Candidati ON ReferentiAziendali.CandidatoID = Candidati.IDcandidato) INNER JOIN ZoneCandidato ON ReferentiAziendali.CandidatoID = ZoneCandidato.CandidatoID) ON Aziende.IDazienda = Candidati.AziendaID) ON Comuni.IDComune = ZoneCandidato.ComuneID WHERE (((ReferentiAziendali.ClienteID)=[Maschere]![Contatti]![Candidati].[Scheda]![TBIDCliente]) AND ((ReferentiAziendali.Competenza)="selezione") AND ((Comuni.Comune)=[Maschere]![Contatti]![Candidati].[Scheda]![ComuneTB]) AND ((ZoneCandidato.ProfiloID)=[Maschere]![Contatti]![Candidati].[Scheda]![CCSceltaTrattativa].column(7)));
doesn't work.Code:[Maschere]![Contatti]![Candidati].[Scheda]![CCSceltaTrattativa].column(7)
what's wrong?


Reply With Quote

