Solved

Me.Recordset.Clone Error 3464

Posted on 2004-09-10
2
273 Views
Last Modified: 2008-02-01
hello experts,

i'm using a macro to search a record  number.

Private Sub Texte503_afterUpdate()

    Dim rs As Object
    Set rs = Me.Recordset.Clone
     rs.FindFirst "[n°] = '" & Me![Texte503] & "'"

    If Not rs.nomatch Then
        Me.Bookmark = rs.Bookmark
    Else
     MsgBox "Aucun numéro correspondant!"
    End If
End Sub


Something is wrong with      rs.FindFirst "[n°] = '" & Me![Texte503] & "'"  access tell me me error 3464. type is incompatible.

what should i write then?

thks mafle
0
Comment
Question by:mafle
2 Comments
 
LVL 65

Accepted Solution

by:
Jim Horn earned 70 total points
ID: 12027417
<< Dim rs As Object >>
should be either
Dim rs as DAO.Recordset <or> Dim RS as ADODB.Recordset

Also, make sure a reference is set to the 'Microsoft DAO Object Library' or 'Microsoft ADO Object Library' (go into any code module, Tools menu:References)

What's a n with the little circle?  This may be a non-standard character that's hosing this up.

Also, check what's in Me![Texte503] and make sure there's no single apostrope ( ' ) marks, as this will hose up anthing when it's fed into a string.

Hope this helps.
-Jim
0
 

Author Comment

by:mafle
ID: 12027726
good work!.

thks for you time,
mafle
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question