Подскажите, пожалуйста, чего не хватает в синтаксисе ниже?
DoCmd.RunSQL "SELECT Val(Provisionsvertrag) as Provisions_vertrag,GarBeginn,GarEnde,GarReglNr as ORIGINAL_GarReglNr,right(GarBeginn,4)&mid(GarBeginn,4,2) AS VON, right(GarEnde,4)&mid(GarEnde,4,2) AS BIS, Verguetungsart,LEFT(Agenturinhabernr,4)&MID(Agenturinhabernr,6,4) as AGT8,Vertriebsweg, Garantiebetrag, [Garantiebtr waehr],Datediff('m',GarBeginn,GarEnde)+1 AS Anzahl_Monate INTO GARANTIE_TEMPOOO " & _
"FROM Garantie_Abzug " & _
"WHERE Garantie_Abzug.GarBeginn BETWEEN #" & Format(start_prv_year, "\#mm\/dd\/yyyy\#") & "# And #" & Format(end_rep_date, "\#mm\/dd\/yyyy\#") & "#"