Hi there,
You typically get this error when using an include file that already defines a variable with the same name. Let's say connect.asp contains this code:
Your current page then contains this:
Code:
<!--#include file="connect.asp"-->
Dim section, SQL
When the page is parsed, the include file is placed in the main file, resulting in this code:
Code:
Dim SQL
Dim section, SQL
This in turn leads to the error you're getting.
Either use a new variable name, or find out if you really need the SQL variable in the include file.
Hope this helps,
Imar