This means you have two definitions of 'adOpenForwardOnly'. Probably one in adovbs.inc and another on your ASP page.
You only need to have one declaration.
i have already checked that, i do not see it on my page and have checked the file
here is my code:<%@Language=VBScript%>
<%Option Explicit%>
<!--#INCLUDE FILE="adovbs.inc"-->
<%
Dim strConnect
Dim objRS, PropNum, SalesEng
Dim objConn
Dim strSQL
%>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Adding a new record</title>
</head>
'adOpenForwardOnly' does not appear in your web page code. I hate to ask, but have you checked adovbs.inc? And are you sure you are pointing to the only adovbs.inc?
The only thing else I can think of is that your adovbs.inc points to another file?? or definition of that variable.
Since your error points to line 14 in adovbs.inc, it says there is a re-definition before anything else occurs on your web page. So it must come from adovbs.inc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.