Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Excel ODBC query oddity
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Arvi Laanemets  
View profile   Translate to Translated (View Original)
 More options 12 Jan, 14:46
Newsgroups: microsoft.public.excel.querydao
From: "Arvi Laanemets" <garb...@hot.ee>
Date: Mon, 12 Jan 2009 16:46:46 +0200
Local: Mon 12 Jan 2009 14:46
Subject: Excel ODBC query oddity
Hi

I have some Excel workbook SQLTest with a table on Sheet1 - p.e. having
columns Key and  Times (in
columns A and B).
In column Key are some key values, p.e. "AAA", "BBB", "CCC"
In column Times are some time values, p.e. working hours. (I formated the
column as "[hh]:mm", but this is optional.)

I defined named range XXX - p.e. as Sheet1!$A1:$B10, i.e. it contains both
columns Key and Times - and saved the workbook.

On Sheet2, I created an ODBC query from range XXX like:
SELECT XXX.Key, Sum(XXX.Times) AS Hours
FROM `FilePath\SQLTest`.XXX XXX
WHERE (XXX.Key<>'')
GROUP BY XXX.Key

Now, whenever all time values on Sheet1 are less than 24 hours, the query
works OK. But when I enter any time values which are >=24 hours, for every
such entry the
query adds extra 24 hours to sum of this data croup (Hours column in result
table)!

I tested this on 3 different computers - 2 with Office2000 and one with
Office2007 - with same result. (Analysis Toolpack Add-In was installed and
activated on all those
computers.)

Has someone had same problem before? And is there some remedy for it?
Thanks in advance!
Arvi Laanemets


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google