Results 1 to 5 of 5
  1. #1
    DeniseGearhart is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    3

    Question Type Mismatch in Expression"?

    I am new to Access 2010 and am trying to build a query of MI counties and survey which includes MI zip codes. In the end I need a Report by county of survey results (which includes the zip codes). I have a table with zipcodes, counties and cities and another table with the survey which contains zipcodes. When I try to build a query with the County from one table with the ZipCodes and other fields from the Survey table I get an error message.



    The query contains an error "type mismatch in expression". I don't know how to fix it. Are the join types correct? Or what do I need to change? I thought that if I linked the zip code from the survey with the zip codes/counties from the Zipcode Table it would work.

    Any ideas?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Are the fields being joined on of similar data types?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DeniseGearhart is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    3
    I am struggling to figure out what I should join--the Zip codes from each table? The ID from the Zip code Table with the Zip Code field from the Survey table (this lists Vendor, Zip Code and other questions in dropdown value lists--a list of breads, a list of tortillas, a list of deliver times, etc.)?

    Since my initial post I realized that the problem is in the Relationship. But they have to be related in order to reference a zip code/county table to a Survey table with each zip code. I need to list the Vendor Survey results by County, but the zip codes provide the link.

    Do you have an answer?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    You didn't answer my question. Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    DeniseGearhart is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    3

    Smile I figured out the Relationships, I need help with % query

    Thanks for asking about relationships. Unfortunately, my database was too large to post. I figured out that I could join the Zip Codes from each table and I changed the Join Type to include all of the Vendor Survey Zip Codes and only the Zip Codes from the Zip Code table which are the same. It worked.

    Building a Query/Report for each Bread and Tortilla (about 25 items) and need to figure the % of Vendors who carry each. Do you have any idea how I can start this?

    I think I need to build a parameter query. I suppose I need to set up a form where one can choose the item from a list then run a query that calculates the % of Vendors out of the total number of vendors. This could be a Report which lists each Bread and Tortilla, then the % of Vendors which carry this item.

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

Similar Threads

  1. Data Type mismatch in criteria expression
    By elb1999 in forum Queries
    Replies: 2
    Last Post: 01-20-2012, 02:38 PM
  2. Replies: 2
    Last Post: 05-17-2011, 02:40 PM
  3. type mismatch in expression
    By lilg1924 in forum Database Design
    Replies: 3
    Last Post: 10-06-2010, 01:37 AM
  4. data type mismatch in criteria expression
    By broecher in forum Access
    Replies: 4
    Last Post: 09-10-2010, 08:29 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