Solved

Me.Recordset.Clone Error 3464

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now