+ Reply to Thread
Results 1 to 5 of 5

EXCEL SQL Problem

  1. #1
    Registered User
    Join Date
    03-07-2006
    Posts
    19

    Unhappy EXCEL SQL Problem

    hi can anyone help me with this problem?

    I have a excel raw datafile call holdmail register.xls which is protected with password when open.

    When i use another excel to query using ADODB connection as show below



    Dim cn As ADODB.Connection
    Set cn = New ADODB.Connection


    With cn
    .Provider = "Microsoft.Jet.OLEDB.4.0"
    .ConnectionString = "Data Source=C:\Documents and Settings\43230121\My Documents\Working folder\Holdmail\Hold mail register.xls ;" & _
    "Extended Properties=Excel 8.0; User ID=HSBC; password=holdmail"
    .Open
    End With


    It show me an error as show below
    Cannot Start Application. The Workgroup information file is missing or opened exclusively by another user



    The problem is that the file was not open.
    Can anyone help me ?

    Thank you,

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667

    Excel database

    I know that older versions of Excel had some "database" capabilities that have not been continued. Perhaps this is the cause of your problem.
    Best regards,

    Ray

  3. #3
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187
    what happens

    A - if you try to open it as a spreadsheet - ie do you get the same error?
    B - if you try to open it as a spreadsheet in code?

    might help to diagnose the problem

  4. #4
    Registered User
    Join Date
    03-07-2006
    Posts
    19

    Excel Data File protected

    hi

    i have encountered the same problem when i create a new worksheet protected with password. The password is used to open the excel file.

    When i wrote another excel to query using ADODB Connection. It will give me the same error.

    When i open the raw data, it working fine after entering the password

  5. #5
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1