Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2008, 09:57 AM
Authorized User
 
Join Date: Aug 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript compilation (0x800A0400)

Hello All,

I have a query on one of my page and i include this page on another one but it gives me an error as follows:

Microsoft VBScript compilation (0x800A0400)
Expected statement

Here is my code:

<%


        SSQL=" SELECT DET_PEGA.Action, DET_PEGA.PEGAID, DET_PEGA.ApplicationGroup, DET_PEGA.ApplicationDetail, DET_PEGA.AccessGroup, DET_PEGA.BackupApprover, "
        SSQL =SSQL & " DET_PEGA.Division, DET_PEGA.Unit,DET_PEGA.Comment "
        SSQL =SSQL & " FROM DET_Pega WHERE (rqn="& VRQN &")"


        Set Rst = CNX.Execute(SSQL)

        If Not Rst.EOF then
            if Rst.fields("Action")<>"" AND Rst.fields("Action")<>"-" then
            Response.write("Action : <span class=field> "& Rst.fields("Action") &" </span> <br>")
            if Rst.fields("PEGAID")<>"" AND Rst.fields("PEGAID")<>"-" then
            Response.write("PEGAID : <span class=field> "& Rst.fields("PEGAID") &" </span> <br>")
            if Rst.fields("ApplicationGroup")<>"" AND Rst.fields("ApplicationGroup")<>"-" then
            Response.write("ApplicationGroup : <span class=field> "& Rst.fields("ApplicationGroup") &" </span> <br>")
            if Rst.fields("ApplicationDetail")<>"" AND Rst.fields("ApplicationDetail")<>"-" then
            Response.write("ApplicationDetail : <span class=field> "& Rst.fields("ApplicationDetail") &" </span> <br>")
            if Rst.fields("AccessGroup")<>"" AND Rst.fields("AccessGroup")<>"-" then
            Response.write("AccessGroup : <span class=field> "& Rst.fields("AccessGroup") &" </span> <br>")
            if Rst.fields("BackupApprover")<>"" AND Rst.fields("BackupApprover")<>"-" then
            Response.write("BackupApprover : <span class=field> "& Rst.fields("BackupApprover") &" </span> <br>")
            if Rst.fields("Division")<>"" AND Rst.fields("Division")<>"-" then
            Response.write("Division : <span class=field> "& Rst.fields("Division") &" </span> <br>")
            if Rst.fields("Unit")<>"" AND Rst.fields("Unit")<>"-" then
            Response.write("Unit : <span class=field> "& Rst.fields("Unit") &" </span> <br>")
            if Rst.fields("Comment")<>"" AND Rst.fields("Comment")<>"-" then
            Response.write("Comment : <span class=field> "& Rst.fields("Comment") &" </span> <br>")

       End If
%>





I include this page as follows:


<% @language=vbscript %>
<%
Select case vorikrn%>
                        <%Case "PEGAPRF_PRD"
                        response.write("Pega")%>


end select
%>



Please help.
 
Old September 1st, 2008, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

But you don't say WHAT LINE you get the error on!

One thing you can do to help track it down is to *temporarily* replace the #INCLUDE with the actual code.

You apparently aren't aware of it, but your #INCLUDE will *ALWAYS* be there, anyway. #INCLUDE happens *way* before the page is compiled, much less run, so *all* #include'd code is *always* there. Always.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript compilation (0x800A0401) dayang Classic ASP Basics 14 May 8th, 2008 02:16 AM
Microsoft VBScript compilation (0x800A0400) joeyjoejnr Classic ASP Databases 2 May 9th, 2007 03:22 AM
Microsoft VBScript compilation (0x800A0400) davidclangley ASP.NET 2.0 Basics 0 February 11th, 2007 10:46 AM
VBScript compilation (0x800A0400) Expected stateme Tom_Nguyen Classic ASP Basics 3 January 2nd, 2006 07:53 PM
Microsoft VBScript compilation (0x800A0400) cnottingham Classic ASP Databases 2 February 12th, 2004 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.