ASP Database error
- From: "Chen Leikehmacher" <chen.leikehmacher@xxxxxxxxx>
- Date: Sat, 16 Jun 2007 14:36:06 +0200
Hi.
I'm currently working on a project for highschool and I'm creating a
website. I am currently on the works of achieving connection to the database
but I seem to get an error everytime I try to run the ASP. Here is the
error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
statement.
/MyWeb/insert.asp, line 18
So, I went to the internet and read that the problem is that I used a
reserved word, which I was(password). And so I changed it, on both the
access table and the code itself, and it seems that nothing has changed for
i got the same error again., and I don't know what to do anymore.
Here are the codes:
<%
dim sq
dim f
dim p
dim path
f=Request.Form("fMn")
p=Request.Form("psW")
sq="insert into users(urI,psW) values("&f&","&p&")"
set con=Server.CreateObject("ADODB.Connection")
con.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("data/MyData.mdb")
con.execute(sq)
%>
Please help me =(.
.
- Follow-Ups:
- Re: ASP Database error
- From: Bob Barrows [MVP]
- Re: ASP Database error
- From: Bob Lehmann
- Re: ASP Database error
- Prev by Date: Re: Need help building query
- Next by Date: Re: ASP Database error
- Previous by thread: Re: Need help building query
- Next by thread: Re: ASP Database error
- Index(es):
Relevant Pages
|