Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

RunTime error 3464  data type mismatch string

Posted on 2013-06-12
2
Medium Priority
?
724 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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: …

618 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