?
Solved

RunTime error 3464  data type mismatch string

Posted on 2013-06-12
2
Medium Priority
?
723 Views
Last Modified: 2013-06-12
Running into issue with data mismatch at: .FindFirst "[strClientId] = " & vID.  CboTest is a text string.


Dim vID As String

vID = cbotest

    If Not IsNull(vID) Then
        With Me.RecordsetClone
            .FindFirst "[strClientId] = " & vID
            If Not .NoMatch Then
                Me.Bookmark = .Bookmark
            End If
        End With
    End If


Error occurs at: .FindFirst "[strClientId] = " & vID
0
Comment
Question by:jbakestull
[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 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 39241101
I assume that "strClientID" is a Text field, so do this:

.FindFirst "[strClientId] = '" & vID & "'"

This surround the vID value with single quotes ( ' )
0
 

Author Closing Comment

by:jbakestull
ID: 39241650
thanks
0

Featured Post

Technology Partners: 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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

764 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