Results 1 to 4 of 4
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Type Mismatch in Expression

    HI,

    Im trying to make a query so that I can view certain fields accross 3 tables. And I get the expression "Type Mismatch in Expression". I thought it was because my one ID Number is a text datatype. SO when I tried to fix it(change it to number) it said "you are switching to a smaller datatype and information may get lost" so then i hit continue, and it says all my records in that field would get deleted? HELP

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Please post the original query, that gave you the type mismatch.

  3. #3
    euanl is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Posts
    25
    I assume you mean that you have a text field that you are trying to link to a numeric field in a query. Can you change the numeric one to text? You would not lose data as long as the text size is larger than the largest number.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The warning means data MIGHT be lost. If the text field really has only numbers then converting to number type should not be an issue. Make a copy of table and test.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Type mismatch in expression
    By valerie in forum Forms
    Replies: 1
    Last Post: 03-13-2012, 06:23 PM
  2. Type Mismatch in Expression"?
    By DeniseGearhart in forum Queries
    Replies: 4
    Last Post: 02-05-2012, 08:04 PM
  3. Data type mismatch in criteria expression
    By buienxg in forum Access
    Replies: 2
    Last Post: 11-22-2011, 10:29 AM
  4. type mismatch in expression
    By lilg1924 in forum Database Design
    Replies: 3
    Last Post: 10-06-2010, 01:37 AM
  5. Type mismatch in expression /Query
    By Brian62 in forum Queries
    Replies: 4
    Last Post: 04-22-2010, 10:00 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