Excel query an Access select query to a secured Access DB -
i apologize if title bit confusing, let me explain. part of work processing / tagging large datasets erp system , make more meaningful reporting purposes. use 2010 access databases manipulate , tag data regularly create static datasets user can point excel pivot tables to, allows them create reports clients.
we have had many issues of users using default excel connection [share deny write] oledb connection. locks "source" .accdb, preventing dropping updated source.accdb file if 1 of dozens of users has excel report open after refreshing file.
to around this, found creating "shadow" .accdb contains linked tables or queries query source.accdb, these connections not lock source.accdb allowing overwrite file updated data please.
some users still seek out source.accdb , link directly it, trying password protect them prevent this. have no issues creating select shadow.accdb query source.accdb using proper password. problem arises when try link of queries in shadow.accdb excel, thrown "invalid password" error.
the issue seems excel oledb (or odbc) connection not being passed password sql query inside shadow.accdb?
yes, understand backasswards way of setting data sources, there many users police connections, have no option of changing programs use, , there no way database end kill excel connection access db, , have work with.
while doubt has specific experience setup, ideas great. example of connections shadow.accdb source.accdb below:
select * table in '' [ms access;pwd=password;database=c:\directory\source.accdb];
try use mode = share deny none instead of share deny write, should allow open , modify access file while users connected excel files, must update data last ones added while connected db.
can specifyng property share deny none while creating connection in tab advanced or can edit existing connection opening properties, tab definition, , edit connection string replacing mode = share deny write mode = share deny none.
Comments
Post a Comment