mappen med databasen har fel rättigheter. mappen skall ha rxwd.
------------------
don't follow your friends -- inflate them
2 svar · 170 visningar · startad av MM
Är det någon som kan tala om för mig varför jag inte kan uppdatera accessdatabasen med följande kod:
-----------------------------------
<%
' *************************
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=serie"
Set rs = Server.CreateObject("ADODB.Recordset")
' **************************
%>
<%
strSQL = "INSERT INTO Match (SerieID, MatchID, Lag1, Lag2, Datum, Spelplats) VALUES ('" _
& Request.Form("hidSerieID") & "', '" _
& Request.Form("txtMatchID") & "', '" _
& Request.Form("txtLag1") & "', '" _
& Request.Form("txtLag2") & "', '" _
& Request.Form("txtDatum") & "', '" _
& Request.Form("txtSpelplats") & "')"
Conn.Execute(strSQL)
Conn.Close()
Response.Redirect("laggtillmatch.asp?SerieID=" & Request.Form("hidSerieID") )
%>
-----------------------
jag får felet:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/tavling/add_match.asp, line 22
---------------------------
Filerna ligger på en windows2000 server.
Är det någon som ser vad jag gör för fel?
MvH Jonas
mappen med databasen har fel rättigheter. mappen skall ha rxwd.
------------------
don't follow your friends -- inflate them
Tusen tack! Nu funkar det bra.