GGasticonMedlem sedan dec. 200250 inlägg Frågan#1 Får detta felmed. när jag trycker på skicka:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]Error in row
/kopBytSalj/add.asp, line 26
RecSet.AddNew
RecSet("name") = Request.Form("name")
RecSet("email") = Request.Form("email")
RecSet("tfn") = Request.Form("tfn")
RecSet("typ") = Request.Form("type")
RecSet("category") = Request.Form("category")
RecSet("subject") = Request.Form("subject")
RecSet("body") = Request.Form("body")
RecSet("time") = Now
RecSet("date") = Now
RecSet("bor") = Request.Form("bor")
RecSet.Update
RecSet.Close
Connect.Close
Response.Redirect "default.asp"
rad26 är: RecSet.Update
någon som kan hjälpa mig här? :)
dahlgrenMedlem sedan aug. 20011 946 inläggDen vanliga frågan. Har du skrivrättigheter i mappen där databasen ligger?
GGasticonMedlem sedan dec. 200250 inlägg mer kod om det är till hjälp:
<!-- #include file = "adovbs.inc" -->
<%
IF Request.QueryString("todo") = "addannons" THEN
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("../../logs/annons.mdb")&";"
Set RecSet = Server.CreateObject("ADODB.Recordset")
Addera = "SELECT * FROM annonser"
RecSet.Open Addera, Connect, adOpenStatic, adLockOptimistic
RecSet.AddNew
RecSet("name") = Request.Form("name")
RecSet("email") = Request.Form("email")
RecSet("tfn") = Request.Form("tfn")
RecSet("typ") = Request.Form("type")
RecSet("category") = Request.Form("category")
RecSet("subject") = Request.Form("subject")
RecSet("body") = Request.Form("body")
RecSet("time") = Now
RecSet("date") = Now
RecSet("bor") = Request.Form("bor")
RecSet.Update
RecSet.Close
Connect.Close
Response.Redirect "default.asp"
END IF%>
<html>
<head>
<title>Namn</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body background="../images/omMain.gif">
<p><img src="annonsLaggIn.gif" width="530" height="26"></p>
<form method="POST" action="../../kopBytSalj/add.asp?todo=addannons">
<table>
<tr>
<th align="right">Namn:</th>
<td><input type="text" name="name" size="35" value></td>
</tr>
<tr>
<th align="right" valign="top">E-post:</th>
<td><input type="text" name="email" size="35" value></td>
</tr>
<tr>
<th align="right">Telefon:</th>
<td><input type="text" name="tfn" size="20" value></td>
</tr>
<tr>
<th align="right" valign="top">Bor:</th>
<td><select NAME="bor" size="1">
<option selected value="- Välj stad - ">- Välj stad -</option>
GGasticonMedlem sedan dec. 200250 inlägg ingen som kan hjälpa mig med detta?