Object doesn't support this property or method

P

Pierre de Beer

Good Day

While using a sub form the code that is generated by
access displays this error message. "Object doesn't
support this property or method"

This is the code

Private Sub Combo40_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Me![Combo40])
Me.Bookmark = rs.Bookmark
End Sub

I believe this is a active controle problem. What is the
best way to resolve this?

Thank You

Pierre
 
I

Igor V. Makeev

Hello, Pierre!
You wrote in message on Mon, 31 May 2004 01:03:40 -0700:

PdB> While using a sub form the code that is generated by
PdB> access displays this error message. "Object doesn't
PdB> support this property or method"

If your subform is based on MSSQL, the data type of the RecordsetClone is
ADODB.Recordset.
ADODB.Recordset not supports the FindFirst method. You should use the Find
method.

With best regards, Igor.
ICQ: 111469481
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Recordset.Clone 2
Cobo Box lookup record on a form 1
VB Runtime error 3159 5
Textbox Filter 4
2003 Glitch -- Search by last name not working 3
RunTime Error 3070 11
OnLoad event criteria 7
Searching 3

Top