One of my table have a field named "Date" which causing me some trouble when i try to create SQL query in my VBA code
since name is reserved, i do put the name between [], but it keep tell me i have to few value when i run the query
but if i put that in a regulare query :
it work fine
Why my query called from VBA wont work...
since name is reserved, i do put the name between [], but it keep tell me i have to few value when i run the query
Code:
strSQL = "INSERT INTO tblDay (refSheet,[Date],Houre) VALUES (3,#2004-10-10#,0)"
but if i put that in a regulare query :
Code:
INSERT INTO tblDay (refSheet,[Date],Houre) VALUES (3,#2004-10-10#,0)
Why my query called from VBA wont work...