Results 1 to 3 of 3
  1. #1
    KERRYDEE is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    May 2016
    Posts
    4

    Data type mismatch in criteria expression.

    I am new to this forum so please forgive me if I make a mistake in asking this question.

    1. Manufacture
    2. Model
    3.SerialNumber
    4.Sizes
    5.SerialTypes
    6ServiceDatePicker
    7.Results.

    I created combo boxes on the original Access Template forms to select from the tables above.



    I keep getting the following error and my refresh total is not working. I checked to ensure that my table fields were filled with text for text entries, etc.
    USysApplicationLog
    SourceObject
    LineItemCodes.GetDetails
    USysApplicationLog
    Description
    Data type mismatch in criteria expression.


    Any help will be tremendously appreciated.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    Data type mismatch in criteria expression
    Criteria is the bit of your query which follows WHERE. Datatype mismatch means you are trying to compare different datatypes (text, number, date etc)

    e.g.

    SELECT *
    FROM myTable
    WHERE myTable.ID="3"

    ID's are numbers, "3" is text so mismatched

    should be

    ....
    WHERE myTable.ID=3

    for a more focused answer, please provide the sql to your query

    This often happens when you use lookups in a table design - the value stored is actually a number, but what you see is text. Although they seem like a good idea, in reality they waste a lot of time, will slow your processing down and lots of other issues, So if you are using them, remove them.

  3. #3
    KERRYDEE is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    May 2016
    Posts
    4
    Thank you very much!!! I did have lookup field in my table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Data Type Mismatch in criteria expression
    By gaker10 in forum Queries
    Replies: 3
    Last Post: 03-05-2015, 01:54 PM
  2. Replies: 5
    Last Post: 02-25-2015, 08:42 AM
  3. Data type mismatch in criteria expression
    By khughes46 in forum Queries
    Replies: 12
    Last Post: 05-01-2014, 07:34 AM
  4. Data type mismatch in criteria expression
    By buienxg in forum Access
    Replies: 2
    Last Post: 11-22-2011, 10:29 AM
  5. Data type mismatch in criteria expression
    By Douglasrac in forum Forms
    Replies: 3
    Last Post: 11-23-2010, 10:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums