ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ADO / Excel & Access: User ID and Password (https://www.excelbanter.com/excel-programming/336546-ado-excel-access-user-id-password.html)

Santiago[_2_]

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


All times are GMT +1. The time now is 07:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com