N
Neil Robbins
I have written a VB.NET 2003 application to front-end a MS Access DB. I want
to build into this the ability for users to change their passwords. I have
written some code for users to be able to do this based on code taken from
Rick Dobson's 'Programming Microsoft Access 2000'. This code is also
available form 'ms-help://MS.VSCC/MS.MSDNVS/dnacc2k/html/acchap2.htm'. When
I run this code I get an error message that says:
'System.Runtime.InteropServices.COMException (0x800A0CB3): Object or
provider is not capable of performing requested operation. at
ADOX.Users.get_Item(Object Item). This seems strange to me as I have used
the exact same code previously in another application fronting another MS
Access DB using workgroup information files created using the Access
security wizard for the specific db. Both applications run using the latest
version of MDAC (2.8) with the correct references. This makes me think that
the problem may lie with the Access DB. The connection strings in both
applications are identical as is all of the other code. I have cut and paste
the code pertaining to the connection below. I also use an
OleDb.OleDbConnection (cnn1) to access the data held in the database and
this all works fine.
Public cnn2 As New ADODB.Connection
cnn2.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Jet
OLEDB:SystemDatabase=" & systemdblocation & ";Data Source=" & examdblocation
& ";UserID=" & User & ";Password=" & PWord)
I have also read at this location
'ms-help://MS.MSDNQTR.2003FEB.1033/ado270/htm/adoddlm1_9.htm' that 'An error
will occur if the provider does not support the administration of trustee
properties.'
Could this be the problem that I am encountering? How could I ensure that
the provider (is this Jet, the DB I created in Access or something else)
does support the administration of trustee properties?
Any help or information is always much appreciated.
to build into this the ability for users to change their passwords. I have
written some code for users to be able to do this based on code taken from
Rick Dobson's 'Programming Microsoft Access 2000'. This code is also
available form 'ms-help://MS.VSCC/MS.MSDNVS/dnacc2k/html/acchap2.htm'. When
I run this code I get an error message that says:
'System.Runtime.InteropServices.COMException (0x800A0CB3): Object or
provider is not capable of performing requested operation. at
ADOX.Users.get_Item(Object Item). This seems strange to me as I have used
the exact same code previously in another application fronting another MS
Access DB using workgroup information files created using the Access
security wizard for the specific db. Both applications run using the latest
version of MDAC (2.8) with the correct references. This makes me think that
the problem may lie with the Access DB. The connection strings in both
applications are identical as is all of the other code. I have cut and paste
the code pertaining to the connection below. I also use an
OleDb.OleDbConnection (cnn1) to access the data held in the database and
this all works fine.
Public cnn2 As New ADODB.Connection
cnn2.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Jet
OLEDB:SystemDatabase=" & systemdblocation & ";Data Source=" & examdblocation
& ";UserID=" & User & ";Password=" & PWord)
I have also read at this location
'ms-help://MS.MSDNQTR.2003FEB.1033/ado270/htm/adoddlm1_9.htm' that 'An error
will occur if the provider does not support the administration of trustee
properties.'
Could this be the problem that I am encountering? How could I ensure that
the provider (is this Jet, the DB I created in Access or something else)
does support the administration of trustee properties?
Any help or information is always much appreciated.