+ Reply to Thread
Results 1 to 3 of 3

Crosstab Query for Sum of Time field

  1. #1
    Registered User
    Join Date
    01-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    71

    Crosstab Query for Sum of Time field

    Hi
    I have a table with two date/time fields. (Stime and ETime)
    I am trying to create a cross tab query based on this table where the row heading is User, Column Heading is positions. The value field need to be sum of the elapsed time from the stime and etime field. I can base this query from a select query where I have already finding the elapsed time in hh:nn:ss format through a function.
    Any help would be appreciated. If I try to do a sum on the elapsedtime field from my select query, Access throws an error "Datatype mismatch....."

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Crosstab Query for Sum of Time field

    you have the function defined as a STRING, you cant add strings.
    it must be DATE.

  3. #3
    Registered User
    Join Date
    01-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Crosstab Query for Sum of Time field

    Thank you for the reply. I will change to date and try. Will update you the rsult

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with union query of two crosstab queries
    By racefan91 in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-25-2013, 04:02 PM
  2. Child form update based on crosstab query
    By Journeyman3000 in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-07-2013, 11:40 PM
  3. Query with Date/Time field to Month
    By Autin in forum Access Tables & Databases
    Replies: 4
    Last Post: 12-10-2011, 09:56 AM
  4. Replies: 2
    Last Post: 12-09-2011, 08:51 AM
  5. External Data - Crosstab Query Access
    By RobLmrcpvf in forum Excel General
    Replies: 2
    Last Post: 06-28-2011, 12:44 PM
  6. Date Order in Crosstab Query
    By aftabn10 in forum Access Tables & Databases
    Replies: 11
    Last Post: 03-24-2011, 02:58 PM
  7. Replies: 1
    Last Post: 03-08-2011, 12:31 PM
  8. ComboBox Form for CrossTab Query filtering
    By AFSSkier in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2006, 03:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1