The error message might map to this ...
Object or provider is not capable of
performing requested operation
Here's my guess. You have an Access XP database, which sets the ADO library
by default. You added the DAO library afterwards, but the ADO library shows up
higher in the references list, so this declaration ...
Dim rs As Recordset
is being interpreted as
Dim rs As ADODB.Recordset
Try doing an explicit declaration, or removing the ADO library reference.
Change the recordset declaration to this and try again ...
Dim rs As DAO.Recordset
--
Danny J. Lesandrini
(E-Mail Removed)
www.amazecreations.com
"iris" <(E-Mail Removed)> wrote ...
>I don't know how to translate it - but its error 3251
>
> "Danny J. Lesandrini" wrote:
>
>> What is the error message?
>>
>> --
>> Danny J. Lesandrini
>> (E-Mail Removed)
>> www.amazecreations.com
>>
>>
>> "iris" <(E-Mail Removed)> wrote in ...
>> >I am trying to delete a record from an access database.
>> >
>> > This code is written in a word userform...
>> >
>> > Dim dbDatabase As Database
>> > Dim rs As Recordset
>> > Dim e As Integer
>> > Dim d As Boolean
>> >
>> > Set dbDatabase = OpenDatabase("C:\mydata1.mdb")
>> > Set rs = dbDatabase.OpenRecordset("SELECT * FROM expressions ORDER by heb;",
>> > dbOpenSnapshot)