What is the problem with this query

J

Jack

I have the following query generated from a asp page, which uses access as
the back end.

Now, I am inserting the query in the sql view and trying to run it. At this
point, it
gives me syntax error. Not sure where the problem is. Any help is
appreciated in advance.

INSERT INTO tblExpense (ENO, Date, ContractedServiceExpense, TravelExpense,
PersonnelExpense) VALUES('1', '03/30/2005', '10', '5', '10')
 
D

Duane Hookom

I expect your use of single quotes as delimiters for all values is the
issue. Numeric fields don't use any delimiters and date fields use "#".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top