Error message????

Results 1 to 2 of 2

Thread: Error message????

  1. #1
    Join Date
    Dec 1969

    Default Error message????

    I get this error:<BR><BR>Microsoft VBScript runtime error &#039;800a0006&#039; <BR><BR>Overflow: &#039;CInt&#039; <BR><BR>/asp/ponewdetail2.asp, line 24 <BR><BR>I am running access db and i never got it before. I am not sure what it means. If i take Cint out, it doesn;t work either. Please advise. Thanks,Petra.<BR>Here is my code:<BR><BR><BR><BR>&#060;script LANGUAGE="vbscript" RUNAT="Server"&#062;<BR><BR>Dim cn, rs, drs<BR>Dim strConnect, strSQL, intCounter, strSQL2<BR>Dim intID<BR> <BR> intID = CInt(Request.QueryString("strID"))<BR> <BR> Set cn = Server.CreateObject("ADODB.Connection")<BR> strConnect = "DSN=vendor"<BR> <BR> Call cn.Open(strConnect)<BR> <BR> <BR> Set rs = Server.CreateObject("ADODB.Recordset")<BR> set rs2 = Server.CreateObject("ADODB.Recordset")<BR> <BR> <BR> strSQL = " SELECT * FROM [POTable] O WHERE O.ID=" & intID<BR> strSQL2 = "SELECT * FROM [podetailtable] D WHERE D.ID =" & intID<BR> Call rs.Open(strSQL, strConnect, 0, 1)<BR> Call rs2.Open(strSQL2, strConnect, 0, 1)<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Error message????

    What happens if you try CLng instead of CInt?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts