If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Updatable Query ERROR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-03, 16:13
BURAKELGIN BURAKELGIN is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Updatable Query ERROR

I am trying to insert a row in an Access Table
Here is the code I am using:

Set Con1 = Server.CreateObject( "ADODB.Connection" )
Con1.Open "accessDSN"

' Add Report
IF addreport <> "" THEN

sqlString = "insert into tReport values ('patil','2','10 OCT 2003','Subject','Report')"

But everytime I get following error mssg.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

Can anybody help me
Reply With Quote
  #2 (permalink)  
Old 09-12-03, 22:13
bill_dev bill_dev is offline
Registered User
 
Join Date: Sep 2003
Posts: 60
Re: Updatable Query ERROR

Some ideas...maybe you've tried them...
Have you tried setting the connection object's mode before opening it?

Also, my docs say the connect string should be "DSN=accessDSN" rather than just the DSN name but I'm not sure it matters. It would depend on the driver and I show that working for OLEDB for ODBC.

Also, tReport is not a "linked" table is it? If so, you may want to delete it then reLink it making sure you specify the correct KEY fields.

Also I don't see the code where you ran the query - using a recordset or just connection.execute?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On