错误类型;名称重定义 帮忙修改一段代码~~在线等 急!!!

来源:百度知道 编辑:UC知道 时间:2024/05/28 11:43:14
本地调试时出现
错误类型:
Microsoft VBScript 编译器错误 (0x800A0411)
名称重定义
/jgds/reg/common.asp, line 9, column 4
Dim strSQL 'Holds SQL string
---^

以下是代码
<%
'Set the script timeout in seconds
Server.ScriptTimeout = 90

'Set Dimension Variables
Dim strDataBasePath 'Holds the path to the database
Dim cString 'Holds the connection string
Dim adoCon 'Holds the ado connection
Dim strSQL 'Holds SQL string

'Set the variable to hold an ADO connection
Set adoCon = Server.CreateObject("ADODB.Connection")

'------------------------------------------------------------------------------------
'改变数据库路径
strDataBasePath = "users.mdb"
'------------------------------------------------------------------------------------

'Connection string for the dat

好像是很明显的错误,你之前有没有其他的引用或者包含文件什么的。看看那里面是不是strSQL已经定义过了。

人家不是告诉你重命名了?!

删除其中一个就可以了

删除
Dim strSQL 'Holds SQL string