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

I have a Excel code that queries an Access database for various
figures etc. I recently protected this Access database with a
password. I am now getting "Enter Username/Password" dialog box when I
try and refresh the query now.

How can I amend my query to enter the Username/Password when I refresh
my query? I'm not sure what the username is as I haven't set this in
Access, so not sure why it is asking for this. What appears in the
dialog box in the Usernane field is "Admin" NB I have tried entering
the actual password manually in this dialog box, but it doesn't accept
this.

Typically I just "refresh" my query in excel with this line:-

Selection.QueryTable.Refresh BackgroundQuery:=False

If I got into "Edit Microsoft Query", under the connection string
definition, the following appears, I assume this is where I would have
to enter my password etc (but what is the username??)

DBQ=C:\arsenal\arsenal_be.MDB;DefaultDir=C:\timepo int;Driver=
{Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS
Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeou t=5;SafeTransactions=0;Threads=3;UID=admin;UserCom mitSync=Yes;
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
Using excel to access MS Access saved query matelot Excel Programming 1 April 19th 08 01:29 AM
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
Run Access query from Excel, input value to query being value in c Nagesh Excel Programming 3 December 22nd 05 02:00 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


All times are GMT +1. The time now is 08:24 PM.

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

About Us

"It's about Microsoft Excel"