A
aedwards via AccessMonster.com
Hi,
Any idea why the following code would work when logged in as a user with
Admin priviledges, but not work when logged in as a user with only normal
priviledges?
This is from a VBA module in an Access 2003 file. The underlying database is
SQL Server 2005 Express. The tables are linked by ODBC using a File DSN I
setup and saved. The ODBC link works always, Admin user or not. It's only
this VBA code with the ADO connection that breaks when a user is not an Admin.
Dim cnxn As New ADODB.Connection
Dim rsProject As New ADODB.Recordset
cnxn.Open "DRIVER={SQL SERVER}; SERVER=DataServer\SQLEXPRESS;
DATABASE=MyDatabase; USER=MyUser; PASSWORD=MyPassword;"
Thanks.
Any idea why the following code would work when logged in as a user with
Admin priviledges, but not work when logged in as a user with only normal
priviledges?
This is from a VBA module in an Access 2003 file. The underlying database is
SQL Server 2005 Express. The tables are linked by ODBC using a File DSN I
setup and saved. The ODBC link works always, Admin user or not. It's only
this VBA code with the ADO connection that breaks when a user is not an Admin.
Dim cnxn As New ADODB.Connection
Dim rsProject As New ADODB.Recordset
cnxn.Open "DRIVER={SQL SERVER}; SERVER=DataServer\SQLEXPRESS;
DATABASE=MyDatabase; USER=MyUser; PASSWORD=MyPassword;"
Thanks.