Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Access Query with Password


I have seen a few posts on how to use VBA in Excel to get information in
a query. My problem is that I cannot find how to get it "save the
password" so that a password popup does not appear.

I am planning on using the "Sub sCopyRSExample()" that copies the
information into an existing sheet as seen on this site:
http://www.mvps.org/access/modules/mdl0035.htm

Any help would be greatly appreciated.


--
Dominator
------------------------------------------------------------------------
Dominator's Profile: http://www.excelforum.com/member.php...o&userid=18504
View this thread: http://www.excelforum.com/showthread...hreadid=376601

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Access Query with Password

I have some bad news for you: you can't use ADO to open a password-protected
Excel file:
http://support.microsoft.com/default...b;EN-US;211378
However, there is a workaround: it is possible to use ADO if you first open
the workbook. So you could open it (hidden if necessary) in your code first
- see Method 2 in the reference above.

"Dominator" wrote:


I have seen a few posts on how to use VBA in Excel to get information in
a query. My problem is that I cannot find how to get it "save the
password" so that a password popup does not appear.

I am planning on using the "Sub sCopyRSExample()" that copies the
information into an existing sheet as seen on this site:
http://www.mvps.org/access/modules/mdl0035.htm

Any help would be greatly appreciated.


--
Dominator
------------------------------------------------------------------------
Dominator's Profile: http://www.excelforum.com/member.php...o&userid=18504
View this thread: http://www.excelforum.com/showthread...hreadid=376601


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Access query vs. Excel query dutty Excel Programming 1 July 28th 04 07:19 PM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"