+ Reply to Thread
Results 1 to 5 of 5

Need help with bypassing an Access password prompt when running a macro from Excel

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Naperville, IL
    MS-Off Ver
    office 2013
    Posts
    29

    Need help with bypassing an Access password prompt when running a macro from Excel

    Hello,

    I currently have a macro set up in Excel which calls a macro within an Access database which is linked to my excel tables. The only issue is that when the Access database opens, it asks for a password which I have to manually enter. I would like end users to be able to come in and refresh the queries without having to enter a password. Is there a way to bypass this through VBA? Here is my current code:

    I appreciate the help.

    Please Login or Register  to view this content.
    Moderator Message: Please use code tags when providing VBA. I have added them for you today as you are new to the forum. Please read our rules and comply in the future.
    Last edited by alansidman; 12-04-2014 at 07:09 PM. Reason: code tags added.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Need help with bypassing an Access password prompt when running a macro from Excel

    Dont you just add:

    Please Login or Register  to view this content.
    to the end of your connection string?
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Naperville, IL
    MS-Off Ver
    office 2013
    Posts
    29

    Re: Need help with bypassing an Access password prompt when running a macro from Excel

    Thanks PJ but that didn't do it. It still prompts me for a password in excel.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Need help with bypassing an Access password prompt when running a macro from Excel

    If you want the users to not have to enter the password, what is the value of having a password? Just remove the password requirement from your spreadsheets.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    07-09-2014
    Location
    Naperville, IL
    MS-Off Ver
    office 2013
    Posts
    29

    Re: Need help with bypassing an Access password prompt when running a macro from Excel

    Sorry I guess I wasn't clear enough. The password is not on the excel spreadsheet, I have an ODBC link to some Access tables which require a password upon opening the database. So what I would need is for my VBA in excel to automatically enter this password when users run the macro.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel userform- prompt password to access sheet 3
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-25-2013, 12:55 PM
  2. Running or bypassing code in a macro based on a certain condition...
    By kenab1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2010, 04:03 PM
  3. password protection-is there anyway to put a password on running a macro in excel?
    By Solarissf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2008, 10:06 AM
  4. Bypassing Excel's FTP login/password dialog
    By tmant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2008, 03:48 AM
  5. Replies: 0
    Last Post: 07-13-2006, 03:15 PM

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