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 April 12th, 2007, 09:06 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to joeyjoejnr
Default Microsoft VBScript compilation (0x800A0400)

hi,

I'm currently working on a web based tracking system for tracking exam questions. I can get my main page working but when i try to log in i get this error:

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/ets/main.asp, line 4
Option Explicit

here is the code i am using:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Language=VBScript %>
<% Option Explicit %>



<html xmlns="http://www.w3.org/1999/xhtml">
<%
    Call OpenDatabase()


    Dim userID
    Dim logType
    Dim rsstage
    Dim rsUser
    Dim userName
    Dim sdate
    Dim stage
    Dim stageDesc
    Dim stageName
    stage=0

    '&&&&&&&&&&&&&&& Timed-out redirect &&&&&&&&&&&&&&&&
    if Session("UserID")="" Then
    Response.Redirect("logged_out.asp")
    End If
    '&&&&&&&&&&&&&&& Timed-out redirect &&&&&&&&&&&&&&&&

    userID = Session("UserID")

    Set rsUser = Server.CreateObject("ADODB.Recordset")
    rsUser.Open "SELECT * FROM Login WHERE TeamId=" &userID& ";", cnnProject

    userName = rsUser("FirstName")&" "&rsUser("LastName")
    logType = rsUser("LogType")

    rsUser.Close
    set rsUser = Nothing


    Set rsstage = Server.CreateObject("ADODB.Recordset")
    rsstage.Open "SELECT * FROM Stage;", cnnProject

    Do While Not rsstage.EOF

    sdate = rsstage("stageDate")


    If sdate < Date Then
    stage=stage + 1
    stageDesc = rsstage("stageDesc")
    stageName = rsstage("stagename")
    End If
    'stage=stage+1
    rsstage.MoveNext
    Loop


%>

 
Old May 5th, 2007, 05:20 AM
Authorized User
 
Join Date: May 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

The very first line of the code should be...
<%@ Language=VBScript %>
<% Option Explicit %>


So change the code in your file to...

<%@ Language=VBScript %>
<% Option Explicit %>

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




...... Rest of the code remains same


Ragards,
Akash - The Sky
 
Old May 9th, 2007, 03:22 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to shawne
Default

I HAVE A PROBLEM WITH SOME OF THE ERROR I GOT -- Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
----->

but when i click the back button i can access the inbox just like that.. i'm using the webmail ASP from http://www.iisworks.com/webmail.. i try to post my comment in there but i think they dont have a time to reply..

Please help me regarding this matter.. and reply to me A.S.A.P!!

and again i'm using NTFS volume at my windows XP .. but when i try to get to the Windows Explorer i got nothing like Security TAB in my right click windows in Explorer can you give me a clue about it what am i supposed to do .. please help me!!

Jamban Style!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript compilation (0x800A0400) pendemv Classic ASP Databases 1 September 1st, 2008 02:58 PM
Microsoft VBScript compilation (0x800A0401) dayang Classic ASP Basics 14 May 8th, 2008 02:16 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.