Consulting

Results 1 to 2 of 2

Thread: Open protected Access database file in Excel

  1. #1
    VBAX Newbie
    Joined
    Mar 2008
    Posts
    2
    Location

    Open protected Access database file in Excel

    Hi everyone:


    I'm trying to open a protected Access database file. I have an MDB file, also MDW file and USER NAME and PASSWORD.

    Is it possible at all?

    So far I came up with this, but where do you put user name and password?
    [vba]
    Set oApp = CreateObject("Access.Application")
    oApp.SetDefaultWorkgroupFile "workgroup_file.mdw"
    oApp.OpenCurrentDatabase "database_file.mdb"
    [/vba]
    Last edited by dc2000; 03-04-2008 at 11:30 PM.

  2. #2
    VBAX Mentor
    Joined
    Dec 2007
    Posts
    462
    Location
    run code to see when you are pompted for username and password
    then sendkeys "username"{Enter} ' username is the user name you would type
    and make aptopriat changes for password
    if you need to capitalize a letter use +(follwed by letter)
    if you need to send "+" then use{+}

Posting Permissions

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