80020009 错误连接页面

来源:百度知道 编辑:UC知道 时间:2024/05/30 03:52:06
asp+access做的数据查询,查询条件是两项均需要正确输入变获得查询的结果,我现在查询的两项条件和库中的对应不上,或者是库中本来就没信息显示的是80020009错误。
我的要求是当查询不出结果的时候在本来的页面上显示 “无此用户信息,请仔细核对你所填写的数据”,要求是在原本页面上本来显示数据的地方显示提示信息,部分源代码如下:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css">
<title></title>
</head>

<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<!--#include file="top.inc"-->
<% if search="" then %>

<center><BR><BR><% =word %></center>

<% else %>
<table width="598" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td>共搜索到<font color="#FF0000"><% =result_num %></font>条符合

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css">
<title></title>

<script language="JavaScript" src="check.js"></script>

<style type="text/css">
<!--
.style1 {font-size: 18pt}
-->
</style>
</head>

<body bgcolor="#FFFFFF">

<table width="444" border="0" align="center">
<tr>
<td><form method="post" action="?acc=cx" name=add />
<div align=center>
<p class="style1"> </p>
<table border=0 cellpadding=0 width=304 cellspacing=1>
<tr>
<td width=147 align=right bgcolor=#D2D8