Results 1 to 2 of 2
  1. #1
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176

    Trying to order by a field that comes from a DateDiff function, data type mismatch

    I am getting this data from another field, FiscalYear, Qurter and Days

    I wanted to group by the first 2 and average the third, I get a data type mismatch error.

    I think its that the resulting Days from the 1st query does not come out as a number, there are nagtive numbers but they are protrayed as -00 instead of the usual (00), so that's what makes me think it's not a number, maybe still a date?

    How would I change this? In the new query I tried to use CDbl([Query].[Days]), the only thing that I could find online, but I still got the data type mismatch.

    Any Ideas?
    Thanks!



    Also, there are no Null values in Days, a couple 0's

  2. #2
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    Finally found this
    http://office.microsoft.com/en-us/ac...001229018.aspx

    Edit: Excpet that this doesn't work either...

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

Similar Threads

  1. Replies: 2
    Last Post: 03-19-2013, 09:36 PM
  2. Data type mismatch error
    By nigelbloomy in forum Programming
    Replies: 1
    Last Post: 08-01-2012, 09:19 AM
  3. Data Type Mismatch in SQL
    By Phred in forum Queries
    Replies: 2
    Last Post: 01-04-2012, 03:40 PM
  4. Data Type Mismatch
    By timmy in forum Programming
    Replies: 9
    Last Post: 04-12-2011, 03:48 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