mtrxpoet
asked on
Microsoft VBScript runtime error '800a01f4'
i get this error when i load my page:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'comm'
/jump.asp, line 8
this is the code to my page:
<%
Option Explicit
%>
<!--#include file ="ensureconnection.inc"-->
<%
If Trim(Request("AuthorAlias" )) <> "" Then
Set comm = Server.CreateObject("ADODB .Command")
Set rs = Server.CreateObject("ADODB .Recordset ")
comm.ActiveConnection = conn
comm.CommandType = 4
comm.CommandText = "DM_SP_SelectAliasIDByAuth orAlias"
comm.Execute, Request("AuthorAlias")
rs.Open comm
If rs.EOF = False Then
If (Request("Type") = "GotoTOC") Then
Response.Redirect("toc.asp ?AuthorAli asID=" & rs.Fields("AliasID"))
Else
Response.Redirect("editrel ationship. asp?Author AliasID=" & rs.Fields("AliasID"))
End If
Else
%>
<!--#include file ="redirectlast.inc"-->
<%
End If
rs.Close
Set rs = Nothing
Set comm = Nothing
End If
%>
please help
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'comm'
/jump.asp, line 8
this is the code to my page:
<%
Option Explicit
%>
<!--#include file ="ensureconnection.inc"-->
<%
If Trim(Request("AuthorAlias"
Set comm = Server.CreateObject("ADODB
Set rs = Server.CreateObject("ADODB
comm.ActiveConnection = conn
comm.CommandType = 4
comm.CommandText = "DM_SP_SelectAliasIDByAuth
comm.Execute, Request("AuthorAlias")
rs.Open comm
If rs.EOF = False Then
If (Request("Type") = "GotoTOC") Then
Response.Redirect("toc.asp
Else
Response.Redirect("editrel
End If
Else
%>
<!--#include file ="redirectlast.inc"-->
<%
End If
rs.Close
Set rs = Nothing
Set comm = Nothing
End If
%>
please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks but these both don't seem to get it to work, what else could the problem be?
Are you still getting the same error? If you are, did you make the changes mgfranz suggested:
Change To:
comm.ActiveConnection = comm
You have:
comm.ActiveConnection = conn
Change To:
comm.ActiveConnection = comm
You have:
comm.ActiveConnection = conn
ASKER
sry guys someone got me the ans on another ? i had listed and i didn't realize they were the same problem.
ASKER
oh if your wondering it was instead of comm i had to have a dns string
As I said, you have the comm set to conn.
Once you learn how to spell, declare and follow variable naming conventions you will be better off.
Once you learn how to spell, declare and follow variable naming conventions you will be better off.
dim comm
dim rs