Results 1 to 5 of 5
  1. #1
    flwrgrl is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17

    Filter report, 1 and 2 won't work, Data Type Mismatch


    I am trying to filter my report.

    Code:
    ([qry_tbl_Production&item].ProductionDate=#7/13/2011#) AND (ProductionQty>0)
    If the ProductionQty is set to a number which would result in the outcome of 1 or 2, I receive an error that the there is a Data Type Mismatch. What is so different about 1 and 2 from any other number?

    Thanks!

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Where is this at? Is this in a query? What do you mean by "If the productionQty is set to a number which would result in the outcome of 1 or 2?" I don't understand. What outcome are you talking about here? I don't see anything regarding a 1 or 2?

  3. #3
    flwrgrl is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    Sorry, I wrote that right before leaving work, in a hurry.

    I am running a report. Using the filter in the report setup, I want to set it to filter for products that have a production of greater than 0 for the day. However, If I set ProductionQty>0, >1, or less than anything (which means it would have to show items that have a 1 or 2 for the day), it gives me the data mismatch error.

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Take a look in the table at the datatype for ProductionQty and tell me what the exact datatype is shown as.

  5. #5
    flwrgrl is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    See attached image

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

Similar Threads

  1. Data type mismatch error
    By AccessUser123 in forum Queries
    Replies: 1
    Last Post: 05-22-2011, 07:48 PM
  2. Data Type Mismatch
    By timmy in forum Programming
    Replies: 9
    Last Post: 04-12-2011, 03:48 AM
  3. Data type mismatch in query
    By thart21 in forum Queries
    Replies: 8
    Last Post: 10-01-2010, 01:40 PM
  4. data type mismatch in criteria expression
    By broecher in forum Access
    Replies: 4
    Last Post: 09-10-2010, 08:29 AM
  5. data type mismatch
    By jgelpi16 in forum Programming
    Replies: 5
    Last Post: 08-02-2010, 04:15 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