Got some great help here for an Insert problem. However, When I run the code on some records in the record set I get:
Run-time error '3134'
Syntax error in INSERT INTO statement
I have examined the previous record that gets inserted and compared it to the record that bombs and I see no syntax difference
The good INSERT is:
INSERT INTO BallsTable ([Account_Number], [FirstName], [LastName], [Date_of_Transaction], [Account_Type_2], [CYear], [CMonth], [Dayofwk], [WkDayNo], [FYr], [FMo], [WkDay], [WeekNum], [MoDay], [Location_Id], [StartTime], [EndTime], [Duration], [Hour], [Balls]) VALUES ('000061', ' ', ' ', #06/17/2013#, 'Paper', '2013', 'Jun', 'Mon', 1, 2014, 2, 1, 25, 17, 'DW30', #12/30/1899 18:18:00#, #12/30/1899 19:12:00#, 54, 18, 23)
The Bad INSERT is:
INSERT INTO BallsTable ([Account_Number], [FirstName], [LastName], [Date_of_Transaction], [Account_Type_2], [CYear], [CMonth], [Dayofwk], [WkDayNo], [FYr], [FMo], [WkDay], [WeekNum], [MoDay], [Location_Id], [StartTime], [EndTime], [Duration], [Hour], [Balls]) VALUES ('00006112301', , , #05/08/2013#, ' ', '2013', 'May', 'Wed', 3, 2014, 1, 3, 19, 8, 'DW08', #12/30/1899 10:07:00#, #12/30/1899 10:10:00#, 3, 9, 13)
Fields and values are equal.
The insert is built in a Helper that MajP provided that has four functions. But I see no difference between the good and the bad. How can a syntax error be data dependant?
Really stumped
jpl
Run-time error '3134'
Syntax error in INSERT INTO statement
I have examined the previous record that gets inserted and compared it to the record that bombs and I see no syntax difference
The good INSERT is:
INSERT INTO BallsTable ([Account_Number], [FirstName], [LastName], [Date_of_Transaction], [Account_Type_2], [CYear], [CMonth], [Dayofwk], [WkDayNo], [FYr], [FMo], [WkDay], [WeekNum], [MoDay], [Location_Id], [StartTime], [EndTime], [Duration], [Hour], [Balls]) VALUES ('000061', ' ', ' ', #06/17/2013#, 'Paper', '2013', 'Jun', 'Mon', 1, 2014, 2, 1, 25, 17, 'DW30', #12/30/1899 18:18:00#, #12/30/1899 19:12:00#, 54, 18, 23)
The Bad INSERT is:
INSERT INTO BallsTable ([Account_Number], [FirstName], [LastName], [Date_of_Transaction], [Account_Type_2], [CYear], [CMonth], [Dayofwk], [WkDayNo], [FYr], [FMo], [WkDay], [WeekNum], [MoDay], [Location_Id], [StartTime], [EndTime], [Duration], [Hour], [Balls]) VALUES ('00006112301', , , #05/08/2013#, ' ', '2013', 'May', 'Wed', 3, 2014, 1, 3, 19, 8, 'DW08', #12/30/1899 10:07:00#, #12/30/1899 10:10:00#, 3, 9, 13)
Fields and values are equal.
The insert is built in a Helper that MajP provided that has four functions. But I see no difference between the good and the bad. How can a syntax error be data dependant?
Really stumped
jpl