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 > insert into db error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-04, 10:10
marczs marczs is offline
Registered User
 
Join Date: Dec 2003
Posts: 5
insert into db error

Hi !

When i try to insert some values into an access db it gives me back this error :

**********************
Tipo de error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][Controlador ODBC Microsoft Access] La operación debe usar una consulta actualizable.


in english something like ... " you must use an updatable query .... "

*************************

if tried everythong but i can't work it out . Any help ?

thankx !!

this is the code


<%
auname=request.form("nom")
auyear=request.form("tf")
auID=request.form("fax")


Set Cnn = Server.CreateObject("ADODB.Connection")
strConAccess = "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\wwwroot\interiorisme\bd_in teriorisme.mdb"
Cnn.open StrConAccess

SQLStmt = "INSERT INTO tbl_empresa2 (nom,descripcio) VALUES ('sadsadasd','dfsdfsdf')"
Set RS = cnn.Execute(SQLStmt)
set rs=nothing

Conn.Close
set conn=nothing
%>
Reply With Quote
  #2 (permalink)  
Old 01-22-04, 23:20
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
What is the exact meaning?

La operación debe usar una consulta actualizable
Reply With Quote
  #3 (permalink)  
Old 01-23-04, 07:20
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
A quick search of google revealed its a MDAC problem;

Quote:
The latest MDAC drivers (anything in the past six months), and especially the Access ODBC driver, have a "feature" that REQUIRES a SYSTEM temp variable be establised. This is done from right clicking My Computer, choosing Properties, Environment, and adding the system variables of TMP C:\TEMP and TEMP C:\TEMP.
You may need to get your host to update the drivers.
Reply With Quote
  #4 (permalink)  
Old 01-23-04, 13:41
marczs marczs is offline
Registered User
 
Join Date: Dec 2003
Posts: 5
thanks

Thanks very much!
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