Hi!
Never had this happen to me before. I generally use MODAL forms with PRIVATE data sessions. I add the tables I need to the form's DE and SELECT when needed. This has worked but now I need EXCLUSIVE use to PACK the tables. I am using the following strategy.
I use the cursor csrOrders to present either in Browse or Report to let the user confirm. Then DELETE matching items from another TABLE.
I close (USE) the table when the cursor is confirmed as OK
Then after other processing I need to reopen EXCLUSIVE so I can pack. It goes through this line without error.
But instead of the 28k+ records I am expecting there are 0.
I have followed it through in DEBUG and every other step is working properly, just now it is as if I don't have any data in the orders table.
I don't even know where to begin to look for the problem.
Any help will be appreciated.
Judi
Still in VFP 6.0.
Never had this happen to me before. I generally use MODAL forms with PRIVATE data sessions. I add the tables I need to the form's DE and SELECT when needed. This has worked but now I need EXCLUSIVE use to PACK the tables. I am using the following strategy.
Code:
*** select orders records to archive
SELECT orders
DELETE FOR shpdate <= (ldArcDate) ;
AND shpcomp = 1 ;
AND !EMPTY(shpdate)
SELECT * ;
FROM orders ;
WHERE DELETED() ;
INTO CURSOR csrOrders
lnTally = _TALLY
IF lnTally > 0
*** got orders - just continue
ELSE
nAnswer = MESSAGEBOX('No Orders to Archive',0 , " ")
USE IN orders
USE IN ordtemp
This.Parent.txtArcDate.Value = {}
This.Parent.txtArcDate.SetFocus()
RETURN
ENDIF
I use the cursor csrOrders to present either in Browse or Report to let the user confirm. Then DELETE matching items from another TABLE.
I close (USE) the table when the cursor is confirmed as OK
Then after other processing I need to reopen EXCLUSIVE so I can pack. It goes through this line without error.
Code:
USE orders IN 0 EXCLUSIVE
But instead of the 28k+ records I am expecting there are 0.
I have followed it through in DEBUG and every other step is working properly, just now it is as if I don't have any data in the orders table.
I don't even know where to begin to look for the problem.
Any help will be appreciated.
Judi
Still in VFP 6.0.