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 : Junk left in ReceivePaymentToDeposit tableSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Junk left in ReceivePaymentToDeposit table 
 Author   Message 
  Steve Groll 
  
 Group: Members 
 Posts: 4 
 Joined: 2008-08-06 
 Profile
 Posted : 2008-09-19 22:54:37

I have been testing some VB code to pay an invoice to Undeposited Funds and then deposit the undeposited funds.  In the process I have created (with my VB code) and deleted (with QuickBooks 2006) several payments.

When I go into QuickBooks to post a deposit I am NOT greeted with the Undeposited Funds dialog box seemingly indicating no left-overs from the create/deletes (this is good).  However, when I query the ReceivePaymentToDeposit table I see several (if not all) left-overs from the payments I thought were deleted.  I tried DELETE FROM ReceivePaymentToDeposit WHERE TxnID=xxxxx.  There was no error message but the records were not deleted.  Does anybody know how to clear this table?

As always, any help would be greatly appreciated.  Steve

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-09-22 10:38:23

The QODBC optimizer isn't able to detect deleted rows. You need to rebuild optimized tables after deletes by doing:

Select * from ReceivePaymentToDeposit VERIFY

 

 

  Top 
  Steve Groll 
  
 Group: Members 
 Posts: 4 
 Joined: 2008-08-06 
 Profile
 Posted : 2008-09-24 11:21:03

It worked!  Is there a VB ADO or DAO method for forcing the rebuild?

Thanks, Steve

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-09-24 11:36:13

Yes, it can be done by simply running a query with the VERIFY tag or using the stored procedure:

sp_optimizefullsync tablename 

See: How do I setup the QODBC Optimizer? Where are the Optimizer options? for more.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to