Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Maximum line numbers on queries |
Author |
Message |
|
Posted : 2006-11-22 23:47:52 |
There is a maximum line count of 5,000 on queries. We need to be able to query more line items, using vbdemo32 than 5,000. Is there anyway to up that count either through QODBC, or vbdemo32 source code? This is very important to us. Thank you. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-23 08:36:49 |
QODBC and VBDemo doesn't have a 5000 row limit. What are you trying to do, and why? |
|
|
|
|
Posted : 2006-11-27 22:11:15 |
Using VBDemo, if we need to figure out the GRM and GRM percentage since the new fiscal year (ours starts September 1st), using the following query:
select txndate, refnumber, billaddressaddr1, shipaddressaddr1, shipaddressstate, salesrepreffullname, shipdate, invoicelineitemreffullname, invoicelinequantity, salesprice, (invoicelinequantity * salesprice) as amount, purchasecost, (invoicelinequantity * purchasecost) as cogs from invoiceline, item where txndatemacro = 'ThisFiscalYear' and listid = invoicelineitemreflistid order by salesrepreffullname, shipaddressstate, shipaddressaddr1 which we know is more than 5,000 line items (one of three company files, well over 380Meg) always stops at exactly 5,000. Or if we do the same query using 'LastFiscalYear', again stops at exactly 5,000. The work around for this is to do txndate >= and txndate <= but it's easier to do it by txndatemacro. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-28 08:47:34 |
Try increasing the Iterator or Chunk Size to 20000 (any value up to 100000 is allowed). If you are not using QuickBooks 2006 or 2007 (USA editions), QODBC reverts to using chunks to retreive sets of records and there's currently a bug in QODBC v7.00.00.199 that doesn't reload the next chunk correctly.
|
|
|
|
|
Posted : 2006-11-28 22:55:34 |
Bumped it up to 100000. Same problem. The query stops at exactly 5,000, and we are using Quickbooks 2006 Enterprise Edition, Manufacturing and Wholesale. The driver that I am using is QODBC v7.00.00.192. Maybe there's a looping problem with vbdemo32? I do have the "basic" vbdemo32 source code that is available on the website so if there is a change in the program it should be easy to make the change and recompile. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-28 23:13:32 |
I've taken VB Demo well beyond 5,000 records, so it's not VB Demo that's the problem. QODBC v7.00.00.192 was an "not for general release" build that didn't pass QC, please update to QODBC v7.00.00.199. Haven't you got something better to run your queries with? |
|
|
|
|
Posted : 2006-11-28 23:45:32 |
There is a line in in vbdemo32 project, MISCPROC.BAS that reads if ... < 5001. Changing the 5001 to a value greater (for example 100000) than 5001 fixes the problem. Thank you. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-29 09:20:48 |
Oh, have you been using the source code version all along? The complied version of VBDemo installed with QODBC doesn't have a 5000 line limitation and also has a number of additional features not found in the source code version. I've requested the QODBC Software Engineer to check whether our version allows up 100,001 rows to be returned by a query and to increase it to that default value if it doesn't (I think it's actually set at 10,001 at the moment). |
|
|
|
|
Posted : 2006-11-29 23:55:13 |
Thank you for your response. I'm glad that we were able to fix the problem. Please let me know when the "source code", with additional features is available. We really like the vbdemo32 program and it gives us a chance to "play" with it. Again, thank you. |
|
|
|
|