Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Insert into Tb_Faculty_Availability format (Available_date,'dd/mm'/yyyy) values ('AKR','18/3/2013');


when i run the above query in ms access shows the error as follows.

syntax error in insert into statement.

what is the mistake i made in my above query.

please help me.


Regards,
Narasiman P.
Posted
Comments
[no name] 7-Mar-13 9:18am    
Maybe you should just break down and do what the answerer's to your other questions have told you to do and use parametrized queries. That would save you from having to come here every ten minutes to post (spamming) yet another "syntax error in your query" question. Just a thought.

1 solution

Try with this syntax:
SQL
INSERT INTO YourTable (CharField1, DateField1)
VALUES ('Some Text', #2013-03-07#)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900