Solved

Me.Recordset.Clone Error 3464

Posted on 2004-09-10
2
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 66

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

628 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