Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having trouble with Access database

Status
Not open for further replies.

DirtyB

Programmer
Mar 13, 2001
159
US
Does everyone else always have obscure problems when trying to hit an access database from .asp pages?

I can connect to the database and run select queries and return them to recordsets. However, I can't run any insert queries. When I do a response.write of my query string, I paste it into Access and it works just fine, the same insert query just errors out from ASP pages with the following:
syntax error in INSERT INTO statement...

here's my line from a response.write(querystring)

INSERT INTO NewProjectRecords(Key) values(12);

it works fine if I paste it into Access, and I can run select queries. .?????? Any Ideas?????
 
put a space between NewProjectRecords and (Key) ...

br
Gerard
 
thanks, but that didn't fix it, any other suggestions?
 
cash the semicolon --

you don't need them to use the query in ASP.
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top