Re: ODBC error 800004005

Q

Quinn

always hate it when I overlook something obvious... file
permissions were set incorrectly on the server...
doh!
-----Original Message-----
yes, on this one the pk is the multiplier field.
when I tried the INSERT INTO was setting two new values.

the table looks like this:

K KHZ
M MHZ

(it's just a lookup table)

tried to add:
G GHZ

and got the same error.

the only other field in the table is a system produced
replication one, which I assumed that the system would
generate when a row was added (or is there something I
have to do for this to happen?)

Joey

-----Original Message-----
Is there a Primary Key on the table?
when
I
try to write to the db I get the following error:

Microsoft OLE DB Provider for ODBC Drivers
error '800004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must
use an updateable query.
/index.asp, line 53

here is my code:

<%
Set objConn - Server.CreateObject("ADODB.Connection")
objConn.Open "DSN=FTSD"
%>

<%
set objCMD = Server.CreateObject("ADODB.Command")
set objCMD.ActiveConnection = objConn
objCMD.CommandText = "UPDATE table_band SET band = 'bob'
WHERE multiplier = 'M'"
objCMD.CommandType = adCmdText
objCMD.Execute
%>

the error line (53) equates to the objCMD.Execute
line
.
 

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