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 security and excel external data

I have a database secured with our own .mdw file on the server. I also
have an excel file that needs to access that db for a specific type of
report generated in Excel. The Admin user and Admins group have been
stripped of all access rights on the db for security reasons, but
that's the default user that Excel tries to log in as when it does its
external data retrieval. I found an article that looked promising (it
involved creating a separate workspace programatically and accessing
the db from within that workspace), but the code broke on the Set ws =
CreateWorkspace line with the error "Can't start your application. The
workgroup information file is missing or opened exclusively by another
user."

Ideally, I'd like to supply Excel with a username and password, then
set up that user on the .mdw side so that it has access rights only to
the necessary queries. Can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Access security and excel external data

tmountjr wrote:

Ideally, I'd like to supply Excel with a username and password, then
set up that user on the .mdw side so that it has access rights only

to
the necessary queries. Can I do this?


CreateWorkspace is DAO. ADO is more popular in these groups. For sample
ADO connection strings using the OLE DB provider for Jet, see:

http://www.able-consulting.com/MDAC/...orMicrosoftJet

AFAIK as well as granting permissions to the query you have to grant
permissions to the underlying tables, queries, etc the query uses.
Jamie.

--

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
Excel 2010 (64 bit) External Data connection with Access Bill Carlson Excel Discussion (Misc queries) 0 June 2nd 11 12:10 AM
Excel Security when using external data MarkInSalemOR Excel Discussion (Misc queries) 0 November 7th 05 06:59 PM
Excel Table Drawing Data from Access - security?? DaBeanie Excel Programming 0 June 24th 04 06:10 AM
Retrieving External Data from Access into Excel Vicki Excel Programming 1 May 26th 04 09:20 AM
Export Excel data to Access Security problem Annelie[_3_] Excel Programming 5 December 30th 03 11:14 PM


All times are GMT +1. The time now is 07:44 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"