Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default ADO / Excel & Access: User ID and Password

Does anyone know how to build up users and passwords in Acces and then access
the Database from VBA code in Excel?

in Access:
ToolsSecurityUser and Groups Accounts

There I can set up "Admin" and "User" accounts and set up password for both.

Then when I build up a connection using ADO in VBA/Excel I would use a
string like the following:

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & ActiveWorkbook.path & "\DBase.mdb;" '& _
"User ID=Admin;" & _
"Password=pass;"


would this be correct?

Thanks & Bregards

Santiago
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
IS IT POSSIBLE TO HAVE MORE THAN ONE USER ACCESS THE SAME EXCEL Sh perl New Users to Excel 1 September 22nd 09 08:51 PM
User not being prompted to enter Password to modify Excel 2003 kmorl Excel Discussion (Misc queries) 2 October 20th 06 05:32 PM
Excel file access password James A Excel Discussion (Misc queries) 2 September 25th 06 01:34 PM
How to import data from a password protected Access DB into Excel. Agus Excel Discussion (Misc queries) 0 October 12th 05 05:42 PM
User name & password access to Excel files in a folder Maria[_6_] Excel Programming 4 November 17th 03 06:44 PM


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