Having trouble getting an INSERT query unleashed on an Access 2000 database from a VB6 application to work. The following query works fine:
INSERT INTO Progress(GameID, TimeSpent, Progress) VALUES (1,1,'text')
However I've got a date field in there as well, and as soon as I turn the query into:
INSERT INTO Progress(GameID, Date, TimeSpent, Progress) VALUES (1,#07-04-2004#,1,'text')
It throws an unspecified error ("There is a syntax error in your Access query.").
Now I'm not used to using Access, so I may well have gotten the # # part wrong, but how *should* I do it in that case?
INSERT INTO Progress(GameID, TimeSpent, Progress) VALUES (1,1,'text')
However I've got a date field in there as well, and as soon as I turn the query into:
INSERT INTO Progress(GameID, Date, TimeSpent, Progress) VALUES (1,#07-04-2004#,1,'text')
It throws an unspecified error ("There is a syntax error in your Access query.").
Now I'm not used to using Access, so I may well have gotten the # # part wrong, but how *should* I do it in that case?