Solved

RunTime error 3464  data type mismatch string

Posted on 2013-06-12
2
716 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
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

911 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

15 Experts available now in Live!

Get 1:1 Help Now