Results 1 to 2 of 2
  1. #1
    keith701a is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    15

    Query Error

    I am building a query based on status of a item and I am receiving an error that says "data type mismatch in criteria expression."



    My query is a basic one, pull the request numbers, the date of the request, who it was assigned to and the status. However, I only want to pull pending requests, so in the criteria field I have it "=Pending" without quotes. What am I doing wrong? This is the sample sql:

    SELECT Requests.[Request Number], Requests.[Request Date], Requests.[Assigned To], [Request Status Details New].Status
    FROM Requests INNER JOIN [Request Status Details New] ON Requests.[Request Number] = [Request Status Details New].[Request Number]
    WHERE ((([Request Status Details New].Status)="Pending"));

  2. #2
    keith701a is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    15
    I realized the problem, the criteria was based on a lookup field.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-27-2011, 05:55 AM
  2. Division by zero error on a query
    By thorwood in forum Access
    Replies: 3
    Last Post: 05-19-2011, 07:20 AM
  3. Query Error
    By Cined in forum Queries
    Replies: 3
    Last Post: 03-05-2011, 07:20 PM
  4. Replies: 10
    Last Post: 02-02-2011, 05:48 PM
  5. Query Error
    By zephaneas in forum Queries
    Replies: 0
    Last Post: 11-12-2008, 02:40 PM

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