Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to link an Access Database from excel if it required a password to open


hi guys
i have an open-protected password Access data base how to open it using
DAO

i open any database if there is no passwords
but how can i tell the excel the password to open the database using it
...and iam sure this is the right password????


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=538893

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default how to link an Access Database from excel if it required a passwor

Access user security is a bit of a pain. You not only need to have the user
name and password, you need to be logged into the proper workgroup for the
database. If not logged into the workgroup the external data interface to
Access will connect as if a member of the Users user group (as set up within
the database). So the solutions are to make sure the table(s) you need are
listed in the Users group permissions, or to set up a workgroup file and have
the user who will be running the report log in to the workgroup.

For more info:
http://msdn.microsoft.com/library/de...eDatabaseS.asp
and:
http://support.microsoft.com/default...2F secfaq.asp
--
- K Dales


"amrezzat" wrote:


hi guys
i have an open-protected password Access data base how to open it using
DAO

i open any database if there is no passwords
but how can i tell the excel the password to open the database using it
..and iam sure this is the right password????


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=538893


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to link an Access Database from excel if it required a password to open


hey guys
with the following way i can open an access database which is not
password protected

dbpath = "C:\MistSat\mistdat.mdb"
Set dbnorthwind = OpenDatabase(dbpath)


Dim rseployees As DAO.Recordset
Set rseployees =
dbnorthwind.OpenRecordset("local_operations",dbOpe nTable)

but if the file is "password to open" how can i open it??
i should increase one paramater to (opendatabase)
i used the following phrase

Set dbnorthwind = OpenDatabase(dbpath, False, False, "microsft dao 3.6
; pwd=mypwd")
but an error appears "run time error 3170 could not find installable
ISAM"

and when i press debug the previous line is highlighted
so what is wrong?????????
thx in advance


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=538893

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to link an Access Database from excel if it required a password to open


here is the groups
i think there is only the admin
and i know that password
take a look at the picture attached

http://www.excelforum.com/attachment...=1&d=114683171

+-------------------------------------------------------------------
|Filename: Image1.jpg
|Download: http://www.excelforum.com/attachment.php?postid=4730
+-------------------------------------------------------------------

--
amrezza
-----------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...fo&userid=2876
View this thread: http://www.excelforum.com/showthread.php?threadid=53889

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
How do break the link from my excel workbook to a access database. Vernon Excel Discussion (Misc queries) 4 November 17th 07 06:26 AM
Excel 2000 required username and password login for database query ISTech Setting up and Configuration of Excel 0 September 7th 05 01:11 AM
Required multiple user name and password logins for database query ISTech Excel Discussion (Misc queries) 0 August 22nd 05 09:53 PM
Can't re-open Access database from Excel VBA Helge V. Larsen[_3_] Excel Programming 0 November 4th 04 09:03 AM
Open Access database(DAO) with password protected Yanto Excel Programming 1 April 22nd 04 11:40 AM


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