Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default Programatically open Access DB with user level security

I have an Excel Add-in that now needs to open an Access database that has
user level security applied to it.

The only way I have been able to achieve this so far is using the VBA Shell
function, since by doing this I can pass the workgroup path and user
name/password to the DB.

Problem then of course is that I can't set a reference to the DB until
Access has started sufficiently to begin supporting OLE and the amount of
time this might take is indeterminate.

A very crude workaround I am using at the moment is to pause the Excel VBA
execution using Wait for a few seconds or so after calling the Shell
function, but even with this included, it still has a less than perfect
success rate.

Does anyone know how I can either pass workgroup and user parameters
thorough regular VBA such as OpenCurrentDatabase - or - monitor the process
handle of Access to see when it has fully initialised?

--
Regards - Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programatically open Access DB with user level security


Are you opening the Database using the ADO method? The Ado method has
the following options

connection.Open ConnectionString, UserID, Password, Options


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=184110

Microsoft Office Help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default Programatically open Access DB with user level security

No I have typically always used DAO, or shell in this case, thanks for the
suggestion though I will try it.

--
Regards - Peter



"joel" wrote:


Are you opening the Database using the ADO method? The Ado method has
the following options

connection.Open ConnectionString, UserID, Password, Options


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=184110

Microsoft Office Help

.

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
user level security-stop export of tables salmonella Excel Discussion (Misc queries) 1 December 20th 06 09:37 PM
security level Michael Excel Programming 4 September 11th 06 11:54 AM
user-level access to pivot table [email protected] Excel Programming 1 June 12th 06 04:50 PM
Change Security Level on Spreadsheet open Nigel Excel Programming 1 July 28th 05 07:31 PM
Changing security level Dan E[_2_] Excel Programming 0 August 22nd 03 06:36 PM


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