---
title: "kan inte skicka info"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/82877-kan-inte-skicka-info"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Gasticon"
published: "2003-07-27T19:41:17.000Z"
updated: "2003-07-28T07:17:43.000Z"
replies: 4
views: 223
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/82877-kan-inte-skicka-info"
---

# kan inte skicka info

## #1 — Gasticon, 2003-07-27T19:41Z

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? :)

Permalänk: https://www.webforum.nu/p/82877

## #2 — dahlgren, 2003-07-27T19:45Z

Den vanliga frågan. Har du skrivrättigheter i mappen där databasen ligger?

Permalänk: https://www.webforum.nu/p/1122173

## #3 — Gasticon, 2003-07-27T19:48Z

jadå! :)

Permalänk: https://www.webforum.nu/p/1122176

## #4 — Gasticon, 2003-07-27T20:21Z

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>
```

Permalänk: https://www.webforum.nu/p/1122191

## #5 — Gasticon, 2003-07-28T07:17Z

ingen som kan hjälpa mig med detta?

Permalänk: https://www.webforum.nu/p/1122338

---

Tråden på webben: https://www.webforum.nu/amne/asp/82877-kan-inte-skicka-info
