Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

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

Forum : Sales orders not showing upSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 Sales orders not showing up 
 Author   Message 
  Andrew 
  
 Group: Members 
 Posts: 10 
 Joined: 2007-06-07 
 Profile
 Posted : 2007-07-07 02:28:09

I'm running QB Enterprise MFG & Wholesale 2007, QODBC v7, and ASP classic.

My problem is that sales orders are not shwoing up in a query. My query is as follows:

For i = 1 To Request.QueryString("p").Count
  qString = qString & "'" & Request.QueryString("p")(i) & "'"
  if i < Request.QueryString("p").Count then
    qString = qString & ","
  end if
Next
sSQL = "SELECT SalesOrderLine.TxnDate, SalesOrderLine.SalesOrderLineQuantity, SalesOrderLine.SalesOrderLineRate, Item.Name, Item.SalesDesc, Item.PurchaseCost " _
  &  "FROM SalesOrderLine NOSYNC, Item NOSYNC " _
  &  "WHERE SalesOrderLine.SalesOrderLineItemRefListID = Item.ListID " _
  &    "AND SalesOrderLine.CustomerRefListID = '" + Request.QueryString("company") + "' " _
  &    "AND Item.Name IN (" & qString & ") " _
  &  "ORDER BY Item.Name, SalesOrderLine.TxnDate DESC"

QB shows sales orders that do not appear in this query, some invoiced, some partially invoiced and some open.  Since this query does not pay attention to the openness of the SO, it should have trapped all.  I have reloated all data to the optimizer before running.

Any ideas on this?

Thanks,
Andrew

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-07 14:22:40

Check your query by changing:

  &  "FROM SalesOrderLine NOSYNC, Item NOSYNC "

to:

  &  "FROM SalesOrderLine UNOPTIMIZED, Item UNOPTIMIZED "

If that brings them up, do a complete rebuild of the SalesOrderLine optimizer table by running:

sp_optimizefullsync SalesOrderLine

 

  Top 
  Andrew 
  
 Group: Members 
 Posts: 10 
 Joined: 2007-06-07 
 Profile
 Posted : 2007-07-10 01:31:10

Hi Tom,

Thanks for the reply.  If I change the query to unoptimized as suggested, the sales orders come up.  I executed the sp_optimizefullsync SalesOrderLine as suggested.  The sales orders still do not come up with the nosync option. 

VB Demo 32 said the sp_optimizefullsync SalesOrderLine executed successfully.  If that is the case shouldn't the sales orders shown up with nosync?

Thanks,
Andrew

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-10 09:05:41
No, VB Demo will optimize the logged in user's optimized table. You need to execute the sp_optimizefullsync SalesOrderLine statement within your ASP code under the Anonymous web user IUSR_machinename 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to