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
|
|
Junk left in ReceivePaymentToDeposit table |
Author |
Message |
|
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 |
|
|
|
Tom |
|
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
|
|
|
|
|
Posted : 2008-09-24 11:21:03 |
It worked! Is there a VB ADO or DAO method for forcing the rebuild?
Thanks, Steve |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-09-24 11:36:13 |
|
|
|
|