Results 1 to 4 of 4

Thread: PLEASE HELP ON MY VB and VB SCRIPT

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    121

    PLEASE HELP ON MY VB and VB SCRIPT

    This is my code, it alway replied a error message, i cut the pix of error message, please help me.

    I will use this to run and correct the MDB database on error on "AO is not index", this error occur when i done compacting MDB database.

    Below is my script, i attached the picture message please help.

    <SCRIPT LANGUAGE="VBScript">
    <!--
    Option Explicit

    Const strDB = "C:\MYDATABASE.MDB"
    const vpassadmin = "cristine"



    Dim dbConnection

    Set dbConnection = CreateObject("ADODB.Connection")

    dbConnection.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq=" &
    strDB & ";Uid=Admin;Pwd=" & cristine & ";"

    dbConnection.Execute "Drop Table MSysAccessObjects"

    dbConnection.Close

    Set dbConnection = nothing

    MsgBox "You should now be able to open the database!"

    -->
    </SCRIPT>

    <HTML>
    <HEAD>
    <TITLE> Database Correcting Error </TITLE>
    </HEAD>


    <BODY>
    Click the button plz...
    <HR>

    <FORM>
    <INPUT NAME = "process"
    TYPE = "BUTTON"
    VALUE = "Click here">
    </FORM>
    <HR>
    </BODY>
    </HTML>
    Attached Images Attached Images  

Posting Permissions

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



Click Here to Expand Forum to Full Width