LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default ODBC query oddity

Hi

Let's have an Excel workbook SQLTest with a table on Sheet1: Key, 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. You may format the
column as "[hh]:mm".

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

On Sheet2, Create 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 you enter times =24 hours, for every such entry the
query adds extra 24 hours!

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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC query problem Arvi Laanemets Excel Discussion (Misc queries) 3 September 26th 08 02:03 PM
Using SUM function in MS QUERY with ODBC Francois via OfficeKB.com Excel Discussion (Misc queries) 0 November 29th 07 02:37 PM
ODBC database query gneissgirl Excel Discussion (Misc queries) 0 November 10th 05 06:18 PM
Excel2000 ODBC query oddity Arvi Laanemets Excel Discussion (Misc queries) 0 March 10th 05 06:35 AM
MS Query/ODBC/SQL problem Jen Excel Discussion (Misc queries) 0 December 3rd 04 03:11 PM


All times are GMT +1. The time now is 01:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"