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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleted records

Status
Not open for further replies.

kiglid

Programmer
Aug 8, 2002
15
0
0
CA
Is it possible to create an index, or somehow sort records in order of deleted records first, then the rest?
 
HI
1. Deleted or not, the index tag holds all the records. It is only the SET DELETED ON or OFF that makes the filtering.

2. Now given the above fact, the records need to be indexed with some element in it which makes it group by your need. The probable solution is..

INDEX ON IIF(DELETED(),"0","1")+field1 TAG myTagName will create the index for you. .. where field1 is your index order field ..assumed as char type. You can suitably modify if it is not a char field.
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top