Member Login

Username
Password
Forget Password
New Sign Up
  Search Forums

  FREE Support
  Forums

  QODBC v10
  QODBC v9
  QODBC v8
  QODBC v7
  QODBC v6

  QODBC FAQs

The QDeveloper Forum is the property of Data Access Worldwide, Australia. The contents of this forum have been taken by FLEXquarters.com Limited, Hong Kong at: http://support.flexquarters
.com/esupport/
without our permission.

 


 
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
 
 
 
 

Forum : About data in QB: Time frame information - Sales by Hour reportingSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Independent Self Help Forum

 New Topic 
 
 Post Reply 
[1]  
 About data in QB: Time frame information - Sales by Hour reporting 
 Author   Message 
  maxstock 
  
 Group: Members 
 Posts: 2 
 Joined: 2009-02-24 
 Profile
 Posted : 2009-02-24 01:58:07
This is a no technical question but one I need to answer myself before jumping into QODBC. I'm considering start working with QODBC to get information we can't get easily from QuickBooks reports. What I would like to ask people working with QODBC and QB and QB POS is if QODBC is able to access and work with information related to time of purchases. For exampe view items that sell the most at 11 AM or between 4 and 5 PM and also see what those itemas are. I don't know if this information is located on the QB or the QB POS file. If someone could tell me If I could I access this type information,  I could start working with QODBC. I would appreciatte any help.

Thank you

Max. 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-02-24 11:29:37

Actually that's pretty easy:

SELECT {fn HOUR(TimeCreated)} as Hour, SalesLineQuantity as Qty, Type, RefNumber as Num,
SalesLineItemRefFullName as Item, SalesLineDesc as Memo, SalesLineRate as SalesPrice,
SalesLineAmount as Amount, TimeModified, CustomFieldContract as Contract#
FROM SalesLine NOSYNC where (TxnDate >= {d'2007-12-01'} and TxnDate <={d'2007-12-31'})
and {fn CONVERT( {fn HOUR(TimeCreated)}, SQL_VARCHAR)} = '22'
and SalesLineType='Item' and SalesLineItemRefFullName is not null
and SalesLineQuantity > 0
order by SalesLineQuantity DESC, SalesLineItemRefFullName

Where '22' is the hour using 24 hour format
           (TxnDate >= {d'2007-12-01'} and TxnDate <={d'2007-12-31'}) is the start and end date for the report

 

  Top 
  maxstock 
  
 Group: Members 
 Posts: 2 
 Joined: 2009-02-24 
 Profile
 Posted : 2009-02-24 22:07:30
Tom,

Thank you very much for the info!. Now I have a good start.

Just a quick question. Do you access this information from QB POS and via QODBC for POS right?. Since the POS file may have the time information. And related, do you get the same time information once you export from POS into QB?.

Thank you for your time.

Max. 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-04-01 10:43:12
QODBC is only for QuickBooks. The above query is run against a QuickBooks Pro, Preimier or Enterprise company file. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to    

Copyright (c) 2006-2009
Data Access Worldwide, Australia. This FREE self help forum website was copied by FLEXquarters.com Limited, Hong Kong to: http://archive.qodbc.com
/forum50f5.html
without our permission.

The QDeveloper Forum is dedicated to the FREE professional exchange of information. QODBC and FlexODBC users can post support queries, report product bugs, or simply search topics for help. Data Access Worldwide - Asia Pacific normal office business hours are 9am to 5pm week days Australian EST with the exception of Public Holidays.
       
ABN: 86 544 223 459
PO Box 873, Boronia VIC 3155 Australia  Tel: 03 9761 3644  Intl: +613 9761 3644