I have code that produces errors from a file called PM.ASP which was created by Visual Interdev I believe. Here is the error and then I will list the code I use that causes it. P.S. The PM.asp code is too long to list here in this forum.<BR><BR>Microsoft JScript runtime error &#039 800a0005&#039 <BR><BR>Invalid procedure call or argument <BR><BR>/_ScriptLibrary/pm.asp, line 161 <BR><BR>----------------------------------<BR><BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;SCRIPT id=DebugDirectives runat=server language=javascript&#062;<BR>// Set these to true to enable debugging or tracing<BR>@set @debug=false<BR>@set @trace=false<BR>&#060;/SCRIPT&#062;<BR>&#060;% &#039 VI 6.0 Scripting Object Model Enabled %&#062;<BR>&#060;!--#include file="_ScriptLibrary/pm.asp"--&#062;<BR>&#060;% if StartPageProcessing() Then Response.End() %&#062;<BR>&#060;FORM name=thisForm METHOD=post&#062;<BR>&#060;HTML&#062;<BR>&#060;HEA D&#062;<BR>&#060;META NAME="GENERATOR" Content="Microsoft FrontPage 4.0"&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR><BR>&#060;P&#062 ;&nbsp;&#060;/P&#062;<BR><BR>&#060;!--METADATA TYPE="DesignerControl" startspan<BR>&#060;OBJECT classid="clsid:9CF5D7C2-EC10-11D0-9862-0000F8027CA0" id=Recordset1 style="LEFT: 0px; TOP: 0px" dtcid="1" width="461" height="101"&#062;<BR> &#060;PARAM NAME="ExtentX" VALUE="12197"&#062;<BR> &#060;PARAM NAME="ExtentY" VALUE="2090"&#062;<BR> &#060;PARAM NAME="State" VALUE="(TCConn=qDB2000q,TCDBObject=qDEsCommandsq,T CDBObjectName=qContactsq,TCControlID_Unmatched=qRe cordset1q,TCPPConn=qDB2000q,RCDBObject=qRCDBObject q,TCPPDBObject=qDEsCommandsq,TCPPDBObjectName=qCon tactsq,TCCursorType=q0s-sForwardsOnlyq,TCCursorLocation=q2s-sUsesserver-sidescursorsq,TCLockType=q1s-sReadsOnlyq,TCCacheSize_Unmatched=q100q,TCCommTime out_Unmatched=q30q,CCPrepared=0,CCAllRecords=1,TCN Records_Unmatched=q10q,TCODBCSyntax_Unmatched=qq,T CHTargetPlatform=qq,TCHTargetBrowser_Unmatched=qSe rvers(ASP)q,TCTargetPlatform=qInheritsfromspageq,R CCache=qRCBookPageq,CCOpen=1,GCParameters=(Rows=0) )"&#062;&#060;/OBJECT&#062;<BR>--&#062;<BR><BR>&#060;!--METADATA TYPE="DesignerControl" endspan--&#062;<BR><BR> <BR>&#060;/BODY&#062;<BR>&#060;% &#039 VI 6.0 Scripting Object Model Enabled %&#062;<BR>&#060;% EndPageProcessing() %&#062;<BR>&#060;/FORM&#062;<BR>&#060;/HTML&#062;<BR><BR>Thanks in advance for some insight.<BR><BR>