database query
hvorfor får jeg den her fejl?Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/test/logged_in.asp, line 24
koden er her nedenunder
<%@ Language=\"VBSCRIPT\" %>
<!--#include file=\"protect.inc\"-->
<% Response.buffer = True %>
<%
Set Conn = Server.CreateObject(\"ADODB.Connection\")
Conn.Open \"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\\Inetpub\\db\\nyheder.mdb\"
%>
<html>
<head>
<title>udtræk af billede fra database</title>
<link rel=\"stylesheet\" href=\"nyheder.css\">
</head>
<body text=\"#000000\" LINK=\"#1E3364\" VLINK=\"#475063\" ALINK=\"#1E3364\" topmargin=\"0\" leftmargin=\"0\" bgproperties=\"fixed\" class=\"text\">
<br>
<center>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"text\"><b><a href=\"indtast.asp\">Opret ny historie</a> <a href=\"search.asp\">Søg</a></b><br></td>
<tr>
<%
user = Request.Form(\"Brugernavn\")
strSQL = \"SELECT * FROM Users WHERE Username=\'%\"&user&\"%\'\"
set rs = Conn.Execute(strSQL)
