Only want to insert a record
- From: "Dave" <dave5398@xxxxxxxxxxxxxx>
- Date: Tue, 10 Jan 2006 12:05:53 -0000
I'm trying again to develop my web application locally using IIS and asp
scripting with a local MS Access database. I have never managed to update
or insert a record using scripting. I can seem to display records ok but
any attempt to amend records seems to fail. I tried using recordsets then
read in MS documentation you should execute a direct command. My latest
failed attempt is this:
ConnectionString = ".....etc"
Conn.Mode=3
Conn.Open(ConnectionString)
sql="INSERT INTO Users (Name, Password) VALUES ('Jim', 'Hello')"
Conn.Execute sql
The sql works fine within Access itself. When executed within an asp page
however I get:
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
Can anyone please help, I've been trying for months.
Dave
.
- Follow-Ups:
- Re: Only want to insert a record
- From: Daniel Crichton
- Re: Only want to insert a record
- Prev by Date: Re: VS.NET TableAdapter Auto Fill Code
- Next by Date: Re: Only want to insert a record
- Previous by thread: Re: VS.NET TableAdapter Auto Fill Code
- Next by thread: Re: Only want to insert a record
- Index(es):
Relevant Pages
- Re: Only want to insert a record
... > scripting with a local MS Access database. ... When executed within
an asp page ... which lets you do whatever your user permissions allow. ...
(microsoft.public.data.ado) - Re: Only want to insert a record
... >> scripting with a local MS Access database. ... When executed
within an asp page ... Any reason why calling ADO from a script should be different
to ... (microsoft.public.data.ado) - Re: Only want to insert a record
... >>> scripting with a local MS Access database. ... When executed
within an asp ... (microsoft.public.data.ado) - Sending null values in SQL statements
... UPDATE statements to an Access database. ... For both the INSERT and UPDATE
statements, ... I use two ASP pages: one for INSERT and one for UPDATE. ...
I would like to use one complete SQL statement in each ... (microsoft.public.inetserver.asp.db) - RE: Learning SQL Server
... How does the site interact with the Access database? ... SQL,
i.e. are the SQL statements generated in the ASP and then sent to the ... (microsoft.public.inetserver.asp.db)