I hope I have a quick question. I have an Excel 2000 spreedsheet that has the following code...
strDatabase = "F:\My Client.mdb"
'Delete the existing selected group
Set dbs = OpenDatabase(strDatabase)
sql = "DELETE * FROM tbl_temp_selected_group"
dbs.Execute sql, dbFailOnError
It worked like a champ until I needed to add User Level security to the Access database. I found several postings on database passwords, but not User Level Security. I found something on the Microsoft site ...
but it is for Visual Basic and not VBA.
In the help for OpenDatabase Method it talks about using and ODBC connection to open a (SQL Server) database. I have a File DSN established that holds the security file, login name, and password, but I can not seem to get the synatax for that to work. Can anyone tell me how to open a database connection in Excel to an Access database that uses User Level Security?
Thank you to anyone taking the time to help me.
sabloomer
strDatabase = "F:\My Client.mdb"
'Delete the existing selected group
Set dbs = OpenDatabase(strDatabase)
sql = "DELETE * FROM tbl_temp_selected_group"
dbs.Execute sql, dbFailOnError
It worked like a champ until I needed to add User Level security to the Access database. I found several postings on database passwords, but not User Level Security. I found something on the Microsoft site ...
but it is for Visual Basic and not VBA.
In the help for OpenDatabase Method it talks about using and ODBC connection to open a (SQL Server) database. I have a File DSN established that holds the security file, login name, and password, but I can not seem to get the synatax for that to work. Can anyone tell me how to open a database connection in Excel to an Access database that uses User Level Security?
Thank you to anyone taking the time to help me.
sabloomer