Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to return only records marked for deletion

Status
Not open for further replies.

mp9

Programmer
Joined
Sep 27, 2002
Messages
1,379
Location
GB
This is no doubt obvious and easy, so apologies in advance.

I'm using VFP5 and need to query a table and ONLY return those records marked for deletion. How can I do this?

Thanks.
 

Of course you would put SET DELETED OFF first, to be able to see the deleted records.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
How about using that index in a scan-loop?

Code:
set deleted off
select 0
use myTable in 0 order xDeleted && or whatever you call the index tag
set key to .T.
scan
   ...
endscan

* or a simple
scan for deleted()
...
endscan

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top