我无法弄清楚缺少的运算符在此行中的位置:
CurrentDb.Execute "INSERT INTO Site_Data" _
& " ([Pass_Fail], [Tag_Name], [PM_#], [Group_Location_Reference], [Device_Type], [Manufacturer_SN], [Year_Put_Into_Service], [Date_of_Test], [Time_To_Complete], [Description], [Set_Point], [Set_Point_Units], [Fail_Low], [Fail_High], [As_Found], [As_Left], [Date_RFS/Idle], [Comments], [Year], [Month], [Site])" _
& " SELECT [Pass_Fail], [Tag_Name], [PM_#], [Group_Location_Reference], [Device_Type], [Manufacturer_SN], [Year_Put_Into_Service], [Date_of_Test], [Time_To_Complete], [Description], [Set_Point], [Set_Point_Units], [Fail_Low], [Fail_High], [As_Found], [As_Left], [Date_RFS/Idle], [Comments], " & yrs & " As [Year], " & Mnth & " As [Month], " & SiteName & " As [Site]" _
& " FROM " & tbl.Name & ";"
编辑
好的,所以变量 yrs = "2013" 有效,但变量mnth = "April"不如site = "Fun_Land"