Solved

Me.Recordset.Clone Error 3464

Posted on 2004-09-10
2
278 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

739 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